public abstract class Orientation extends Object implements Cloneable
BaseSRF_3D| Modifier and Type | Field and Description |
|---|---|
static double |
epsilon
Epsilon value for equivalence tests
|
| Constructor and Description |
|---|
Orientation() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
_get_internal_data_is_current()
is set to true when the internal data is equivalent to the
representation class data.
|
protected SRM_Matrix_3x3 |
_get_matrix_base_unch() |
protected SRM_Matrix_3x3 |
_get_matrix_base()
Internal matrix 3x3 representation (for now) used for calculations
|
protected void |
_set_internal_data_is_current(boolean internal_data_is_current) |
protected void |
_set_matrix_base(SRM_Matrix_3x3 mat) |
protected abstract void |
_updateIntData()
the virtual function to convert the data from native representation to
the internal representation
|
protected abstract void |
_updateRepData()
the virtual function to convert the data from internal representation
to the native representation
|
static boolean |
equivalence(Orientation instance1,
Orientation instance2) |
static boolean |
equivalence(Orientation instance1,
Orientation instance2,
double tolerance) |
SRM_Axis_Angle_Params |
getAxisAngle()
Gets the orientation in (axis, angle) representation
|
SRM_Euler_Angles_ZXZ_Params |
getEulerAnglesZXZ()
Gets the orientation in Euler angles (ZXZ) representation
|
SRM_Matrix_3x3 |
getMatrix3x3()
Gets the orientation in matrix 3x3 representation
|
abstract SRM_Ori_Rep |
getOriRep()
Returns the native orientation representation type.
|
SRM_Quaternion_Params |
getQuaternion()
Gets the orientation in Quaternion representation
|
SRM_Tait_Bryan_Angles_Params |
getTaitBryanAngles()
Gets the orientation in Tait-Bryan angles representation
|
boolean |
isEqual(Orientation ori)
The equality operator.
|
void |
setAxisAngle(double[] axis,
double angle_in_rad)
Sets the orientation using (axis, angle) parameters.
|
void |
setAxisAngle(SRM_Axis_Angle_Params params)
Sets the (axis, angle) orientation representation
|
void |
setEulerAnglesZXZ(double spin,
double nutation,
double precession)
Sets the orientation using spin, nutation, and precession parameters
|
void |
setEulerAnglesZXZ(SRM_Euler_Angles_ZXZ_Params params)
Sets the Euler angles (ZXZ) orientation representation
|
void |
setMatrix3x3(double a11,
double a12,
double a13,
double a21,
double a22,
double a23,
double a31,
double a32,
double a33)
Sets the orientation using elements of the matrix (mat) 3x3 parameter
|
void |
setMatrix3x3(SRM_Matrix_3x3 params)
Sets the Matrix 3x3 orientation representation
|
void |
setQuaternion(double e0,
double e1,
double e2,
double e3)
Sets the orientation using quaternion (e0, e1, e2, e3 ) parameters
|
void |
setQuaternion(SRM_Quaternion_Params params)
Sets the quaternion orientation representation
|
void |
setTaitBryanAngles(double roll,
double pitch,
double yaw)
Sets the orientation using roll, pitch and yaw parameters
|
void |
setTaitBryanAngles(SRM_Tait_Bryan_Angles_Params params)
Sets the Tait-Bryan angles orientation representation.
|
abstract String |
toString()
Returns the string for the orientation values.
|
double[] |
transformVector(double[] vec)
Applies this orientation to the input vector and sets the result in the
return vector.
|
public static final double epsilon
protected SRM_Matrix_3x3 _get_matrix_base()
protected SRM_Matrix_3x3 _get_matrix_base_unch()
protected void _set_matrix_base(SRM_Matrix_3x3 mat)
protected boolean _get_internal_data_is_current()
protected void _set_internal_data_is_current(boolean internal_data_is_current)
protected abstract void _updateIntData()
protected abstract void _updateRepData()
public SRM_Matrix_3x3 getMatrix3x3()
public SRM_Axis_Angle_Params getAxisAngle() throws SrmException
SrmExceptionpublic SRM_Euler_Angles_ZXZ_Params getEulerAnglesZXZ()
public SRM_Tait_Bryan_Angles_Params getTaitBryanAngles()
public SRM_Quaternion_Params getQuaternion() throws SrmException
SrmExceptionpublic void setMatrix3x3(SRM_Matrix_3x3 params) throws SrmException
SrmExceptionpublic void setMatrix3x3(double a11,
double a12,
double a13,
double a21,
double a22,
double a23,
double a31,
double a32,
double a33)
throws SrmException
SrmExceptionpublic void setAxisAngle(SRM_Axis_Angle_Params params) throws SrmException
SrmExceptionpublic void setAxisAngle(double[] axis,
double angle_in_rad)
throws SrmException
axis - in: the axis of rotation, which is a unit vectorangle - in: the angle of rotation, which is in radians in
the range of [-2PI, 2PI]SrmExceptionpublic void setEulerAnglesZXZ(SRM_Euler_Angles_ZXZ_Params params) throws SrmException
SrmExceptionpublic void setEulerAnglesZXZ(double spin,
double nutation,
double precession)
throws SrmException
spin - in: the spin angle, which is in radians in the range of
[-2PI, 2PI]nutation - in: the nutation angle is in radians in the range of
[-2PI, 2PI]precession - in: the precession angle, which is in radians in the
range of [-2PI, 2PI]SrmExceptionpublic void setTaitBryanAngles(SRM_Tait_Bryan_Angles_Params params) throws SrmException
This - method throws srm::ExceptionSrmExceptionpublic void setTaitBryanAngles(double roll,
double pitch,
double yaw)
throws SrmException
roll - in: the roll angle, which is in radians in the range of
[-2PI, 2PI]pitch - in: the pitch angle, which is in radians in the range
of [-2PI, 2PI]yaw - in: the yaw angle, which is in radians in the range of
[-2PI, 2PI]SrmExceptionpublic void setQuaternion(SRM_Quaternion_Params params) throws SrmException
SrmExceptionpublic void setQuaternion(double e0,
double e1,
double e2,
double e3)
throws SrmException
e0 - in: the scale (real) parametere1 - in: the vector multiplier in (i) directione2 - in: the vector multiplier in (j) directione3 - in: the vector multiplier in (k) directionSrmExceptionpublic abstract String toString()
public abstract SRM_Ori_Rep getOriRep()
public double[] transformVector(double[] vec)
throws SrmException
This - method throws srm::ExceptionSrmExceptionpublic static final boolean equivalence(Orientation instance1, Orientation instance2, double tolerance) throws SrmException
SrmExceptionpublic static final boolean equivalence(Orientation instance1, Orientation instance2)
public boolean isEqual(Orientation ori) throws SrmException
SrmExceptionCopyright © 2013 SEDRIS. All Rights Reserved.