Programming Reference for VirtualLab™  5.4
Public Member Functions | Properties | List of all members
EulerAnglesSet Struct Reference

Public Member Functions

object Clone ()
 
 EulerAnglesSet (PhysicalValue psi, PhysicalValue theta, PhysicalValue phi)
 
 EulerAnglesSet (double psi, double theta, double phi)
 
 EulerAnglesSet (EulerAnglesSet set)
 
 EulerAnglesSet (SerializationInfo info, StreamingContext context)
 
OrientationByEulerAngles GetAsRotationSequence ()
 
void GetObjectData (SerializationInfo info, StreamingContext context)
 
Matrix3x3D GetRotationMatrix ()
 

Properties

PhysicalValue EulerPhi [get, set]
 
PhysicalValue EulerPsi [get, set]
 
PhysicalValue EulerTheta [get, set]
 

Detailed Description

Constructor & Destructor Documentation

EulerAnglesSet ( PhysicalValue  psi,
PhysicalValue  theta,
PhysicalValue  phi 
)

Constructor for the set of Euler angles

Parameters
psiAngle between old x-axis and line of nodes
thetaAngle between old and new z-axis
phiAngle between line of nodes and new x-axis
EulerAnglesSet ( double  psi,
double  theta,
double  phi 
)

Constructor for the set of Euler angles

Parameters
psiAngle between old x-axis and line of nodes
thetaAngle between old and new z-axis
phiAngle between line of nodes and new x-axis

Copy constructor

Parameters
setEuler angles set to copy
EulerAnglesSet ( SerializationInfo  info,
StreamingContext  context 
)

Deserialization constructor

Parameters
infoThe info object of the deserialization stream.
contextThe context object of the deserialization stream.

Member Function Documentation

object Clone ( )

Deep copy of Euler angles set.

Returns
OrientationByEulerAngles GetAsRotationSequence ( )

Gets the complete EulerAnglesSet as RotationSequence. As our Euler angles definition follows the Z-X'-Z'-convention, the rotation sequence consists of exactly these simple rotations:

  1. rotation by Psi about the original Z axes,
  2. rotation by Theta about the new (intermediate) X' axes, which is also called 'line of nodes'
  3. rotation by Phi about the new Z' axes.
Returns
void GetObjectData ( SerializationInfo  info,
StreamingContext  context 
)

For Serialization of the class. See the ISerializable interface for more details

Parameters
infoSerializationInfo
contextStreamingContext
Matrix3x3D GetRotationMatrix ( )

Calculates a rotation matrix from this. For the definition of the Euler angles see Bronstein et.al. "Taschenbuch der Mathematik", 2. Aufl.; Deutsch-Verlag, 1995; p.179-180.

Returns
The rotation matrix

Property Documentation

PhysicalValue EulerPhi
getset

Angle between line of nodes and new x-axis

PhysicalValue EulerPsi
getset

Angle between old x-axis and line of nodes

PhysicalValue EulerTheta
getset

Angle between old and new z-axis