Programming Reference for VirtualLab Fusion  2022.1
Public Member Functions | Properties | List of all members
OrientationByMatrix Class Reference

This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
A class for defining orientations via rotation matrix. More...

Inheritance diagram for OrientationByMatrix:
OrientationDefinitionBase

Public Member Functions

override OrientationDefinitionBase Clone ()
 Creates a new object that is a copy of the current instance. More...
 
override Quaternion CorrespondingQuaternion ()
 Gets the quaternion corresponding to this orientation definition. More...
 
override bool Equals (object otherObject, EqualityIntent equalityIntent)
 Determines whether the specified Object is equal to this instance. Please note: If just the resulting orientation of this and the otherObject shall be compared, the method IsEquivalent of the base class should be used. More...
 
 OrientationByMatrix ()
 Default constructor. Creates an identity rotation matrix.
 
 OrientationByMatrix (Matrix3x3D rotationMatrix)
 Constructor which gets a rotation matrix. More...
 
 OrientationByMatrix (OrientationByMatrix oMatrix)
 Copy constructor More...
 
override string ToString ()
 Overridden ToString method. More...
 
- Public Member Functions inherited from OrientationDefinitionBase
abstract OrientationDefinitionBase Clone ()
 Deep copy of this. More...
 
abstract Quaternion CorrespondingQuaternion ()
 Gets the quaternion corresponding to this orientation definition. More...
 
virtual bool IsEquivalent (OrientationDefinitionBase orientationDefinitionToCompare)
 // Gets the rotation matrix corresponding to this orientation definition. // More...
 
 OrientationDefinitionBase ()
 Default constructor
 

Properties

override OrientationDefinitionType DefinitionType [get]
 Gets the OrientationDefinitionType associated with the current implementation of IOrientationDefinition
 
override List< SimpleRotationListOfRotations [get]
 Gets a list of simple rotations, describing the orientation as a rotation sequence
 
Matrix3x3D RotationMatrix [get, set]
 The 3x3-matrix which defines the rotation
 
- Properties inherited from OrientationDefinitionBase
abstract OrientationDefinitionType DefinitionType [get]
 Gets the OrientationDefinitionType associated with the current implementation of IOrientationDefinition
 
abstract List< SimpleRotationListOfRotations [get]
 Gets a list of simple rotations, describing the complete rotation as a sequence
 

Additional Inherited Members

- Static Public Member Functions inherited from OrientationDefinitionBase
static OrientationDefinitionBase ConvertOrientationDefinition (OrientationDefinitionBase sourceOrientation, OrientationDefinitionType targetType)
 Help method which converts any orientation definition object into an equivalent definition object of another type. More...
 

Detailed Description

This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
A class for defining orientations via rotation matrix.

Constructor & Destructor Documentation

◆ OrientationByMatrix() [1/2]

OrientationByMatrix ( Matrix3x3D  rotationMatrix)

Constructor which gets a rotation matrix.

Parameters
rotationMatrixRotation matrix which describes the orientation.

◆ OrientationByMatrix() [2/2]

Copy constructor

Parameters
oMatrixObject to be copied.

Member Function Documentation

◆ Clone()

override OrientationDefinitionBase Clone ( )
virtual

Creates a new object that is a copy of the current instance.

Returns
A new object that is a copy of this instance.

Implements OrientationDefinitionBase.

◆ CorrespondingQuaternion()

override Quaternion CorrespondingQuaternion ( )
virtual

Gets the quaternion corresponding to this orientation definition.

Returns
The quaternion corresponding to this orientation definition.

Implements OrientationDefinitionBase.

◆ Equals()

override bool Equals ( object  otherObject,
EqualityIntent  equalityIntent 
)

Determines whether the specified Object is equal to this instance. Please note: If just the resulting orientation of this and the otherObject shall be compared, the method IsEquivalent of the base class should be used.

Parameters
otherObjectThe Object to compare with this instance.
equalityIntentDefines what kind of equality you want to check when comparing two objects, for example all values or physical equality.
Returns
true if the specified Object is equal to this instance; otherwise, false.

◆ ToString()

override string ToString ( )

Overridden ToString method.

Returns
A System.String that represents this instance.