| Earth Observation Mission CFI Software Lib Software User Manual for JAVA |

Public Member Functions | Static Public Member Functions

# EECFI.LibFunc Class Reference

Base class for LibFunc objects. More...

Inheritance diagram for EECFI.LibFunc:

List of all members.

## Public Member Functions
| LibFunc ()
| Class constructor (using satellite enumeration value).
## Static Public Member Functions
static native double[][] | eulerToMatrix (double eulerAngles[]) throws CfiError
| Get rotation matrix from Euler angles.
static native double[] | matrixToEuler (double matrix[][]) throws CfiError
| Get Euler angles from rotation matrix.
static native double[] | getRotationAngles (double xsInit[], double ysInit[], double zsInit[], double xsFin[], double ysFin[], double zsFin[]) throws CfiError
| Get rotation angles between two sets of orthonormal right-handed unit vectors.
static native double[][] | getRotatedVectors (double xsInit[], double ysInit[], double zsInit[], double angle[]) throws CfiError
| Rotate a set of unit angle vectors.
static native double[][] | quaternionsToVectors (double quaternions[]) throws CfiError
| Change from quaternions to vectors.
static native double[] | vectorsToQuaternions (double uxVec[], double uyVec[], double uzVec[]) throws CfiError
| Change form vectors to quaternions.

## Detailed Description

Base class for LibFunc objects.

## Constructor & Destructor Documentation

EECFI.LibFunc.LibFunc | ( |  | ) |

Class constructor (using satellite enumeration value).

## Member Function Documentation

EECFI.LibFunc::eulerToMatrix | ( | double | eulerAngles[] | ) | throws CfiError`[static]`

Get rotation matrix from Euler angles.

Parameters:

  | eulerAngles | Euler angles.

Returns:
  Rotation matrix.

EECFI.LibFunc::getRotatedVectors | ( | double | xsInit[],
|  | double | ysInit[],
|  | double | zsInit[],
|  | double | angle[] |
| ) |  |  | throws CfiError`[static]`

Rotate a set of unit angle vectors.

Parameters:

  | xsInit | Unitary direction vector along the X-axes of the initial attitude frame.
  | ysInit | Unitary direction vector along the Y-axes of the initial attitude frame.
  | zsInit | Unitary direction vector along the Z-axes of the initial attitude frame.
  | angle | Angles (pitch, roll and yaw) between initial and final Attitude Frames (deg [-180,180)).

Returns:
  Unitary direction vector along the X, Y, Z axis of the final attitude frame.

EECFI.LibFunc::getRotationAngles | ( | double | xsInit[],
|  | double | ysInit[],
|  | double | zsInit[],
|  | double | xsFin[],
|  | double | ysFin[],
|  | double | zsFin[] |
| ) |  |  | throws CfiError`[static]`

Get rotation angles between two sets of orthonormal right-handed unit vectors.

Parameters:

  | xsInit | Unitary direction vector along the X-axes of the initial attitude frame.
  | ysInit | Unitary direction vector along the Y-axes of the initial attitude frame.
  | zsInit | Unitary direction vector along the Z-axes of the initial attitude frame.
  | xsFin | Unitary direction vector along the X-axes of the final attitude frame.
  | ysFin | Unitary direction vector along the Y-axes of the final attitude frame.
  | zsFin | Unitary direction vector along the Z-axes of the final attitude frame.

Returns:
  Angles (pitch, roll and yaw) between initial and final Attitude Frames (deg [-180,180)).

EECFI.LibFunc::matrixToEuler | ( | double | matrix[][] | ) | throws CfiError`[static]`

Get Euler angles from rotation matrix.

Parameters:

  | matrix | Rotation matrix.

Returns:
  Euler angles.

EECFI.LibFunc::quaternionsToVectors | ( | double | quaternions[] | ) | throws CfiError`[static]`

Change from quaternions to vectors.

Parameters:

  | quaternions | Input quaternion vector.

Returns:
  Unitary direction vector along the X, Y, Z axis.

EECFI.LibFunc::vectorsToQuaternions | ( | double | uxVec[],
|  | double | uyVec[],
|  | double | uzVec[] |
| ) |  |  | throws CfiError`[static]`

Change form vectors to quaternions.

Parameters:

  | uxVec | Unitary direction vector along the X-axes.
  | uyVec | Unitary direction vector along the Y-axes.
  | uzVec | Unitary direction vector along the Z-axes.

Returns:
  Equivalent quaternion.