Property | Type | Description | |
---|---|---|---|
Angle | double | ||
X | double | ||
Y | double | ||
Z | double |
Method | Description | |
---|---|---|
FromEuler ( double heading, double attitude, double bank ) : void |
constructor to create vecRotation from euler angles.
|
|
Normalize ( ) : void | ||
VecRotation ( ) : System |
Default constructor - initializes all fields to default values
|
|
VecRotation ( double x, double y, double z, double angle ) : System | ||
combine ( |
calculate total rotation by taking current rotation and then apply rotation r if both angles are quaternions then this is a multiplication
|
|
combine ( double heading, double attitude, double bank ) : void |
combine a rotation expressed as euler angle with current rotation. first convert both values to quaternoins then combine and convert back to axis angle. Theory about these conversions shown here: http://www.martinb.com/maths/geometry/rotations/conversions/index.htm
|
|
getTransform ( Fractrace.Geometry.Vec3 p1 ) : Fractrace.Geometry.Vec3 |
calculates the effect of this rotation on a point the new point is given by=q * P1 * q' this version does not alter P1 but returns the result. for theory see: http://www.martinb.com/maths/algebra/realNormedAlgebra/quaternions/transforms/index.htm
|
|
toEuler ( double &heading, double &attitude, double &bank ) : void |
Converts the Rotation in Euler Axis
|
Method | Description | |
---|---|---|
toAxisAngle ( ) : void |
if this rotation is not already coded as axis angle then convert it to axis angle
|
|
toQuaternion ( ) : void |
if this rotation is not already coded as quaternion then convert it to quaternion
|
public FromEuler ( double heading, double attitude, double bank ) : void | ||
heading | double | rotation about z axis |
attitude | double | rotation about y axis |
bank | double | rotation about x axis |
return | void |
public VecRotation ( double x, double y, double z, double angle ) : System | ||
x | double | |
y | double | |
z | double | |
angle | double | |
return | System |
public combine ( double heading, double attitude, double bank ) : void | ||
heading | double | angle about x axis |
attitude | double | angle about y axis |
bank | double | angle about z axis |
return | void |
public getTransform ( Fractrace.Geometry.Vec3 p1 ) : Fractrace.Geometry.Vec3 | ||
p1 | Fractrace.Geometry.Vec3 | |
return | Fractrace.Geometry.Vec3 |
public toEuler ( double &heading, double &attitude, double &bank ) : void | ||
heading | double | The heading. |
attitude | double | The attitude. |
bank | double | The bank. |
return | void |