Class OrientationDefinitionBase
- Namespace
- VirtualLabAPI.Core.Numerics
- Assembly
- VirtualLabAPI.dll
Base for all classes that describe a rotation definition.
[Serializable]
public abstract class OrientationDefinitionBase : ManualSerialization, IEquatable<IObjectBase>, ISerializable, IDeserializationCallback, ICloneable
- Inheritance
-
ObjectBaseSerializableObjectBaseManualSerializationOrientationDefinitionBase
- Implements
-
IEquatable<IObjectBase>
- Derived
- Inherited Members
Constructors
OrientationDefinitionBase()
Default constructor
public OrientationDefinitionBase()
Properties
DefinitionType
Gets the OrientationDefinitionType associated this orientation.
public abstract OrientationDefinitionType DefinitionType { get; }
Property Value
ListOfRotations
Gets a list of simple rotations, describing the complete rotation as a sequence.
public abstract List<SimpleRotation> ListOfRotations { get; }
Property Value
ParameterRunParameters
Gets all available parameters. For variable parameters (i.e. those double and int parameters which can be used in the Parameter Run, Parametric Optimization and so on) add a VaryParameterInfo object (derived from Parameter class) to the returned list.
public virtual List<Parameter> ParameterRunParameters { get; }
Property Value
- List<Parameter>
Methods
ConvertOrientationDefinition(OrientationDefinitionBase, OrientationDefinitionType)
Method which converts any orientation definition object into an equivalent definition object of another type.
public static OrientationDefinitionBase ConvertOrientationDefinition(OrientationDefinitionBase sourceOrientation, OrientationDefinitionType targetType)
Parameters
sourceOrientationOrientationDefinitionBaseOrientation definition to be converted.
targetTypeOrientationDefinitionTypeType of the orientation needed.
Returns
- OrientationDefinitionBase
Converted orientation definition.
CorrespondingQuaternion()
Gets the quaternion corresponding to this orientation definition.
public abstract Quaternion CorrespondingQuaternion()
Returns
- Quaternion
The quaternion corresponding to this orientation definition.
IsEquivalent(OrientationDefinitionBase)
Determines whether another orientation definition is equivalent.
public virtual bool IsEquivalent(OrientationDefinitionBase orientationDefinitionToCompare)
Parameters
orientationDefinitionToCompareOrientationDefinitionBaseIOrientationDefinition which has to be compared.
Returns
- bool
True, if the two objects are equivalent,falseotherwise.