Class SimpleRotation
- Namespace
- VirtualLabAPI.Core.Numerics
- Assembly
- VirtualLabAPI.dll
Class for describing a rotation about one of the coordinate axes by a certain predefined angle.
[Serializable]
public class SimpleRotation : ManualSerialization, IEquatable<IObjectBase>, ICloneable, ISerializable, IDeserializationCallback
- Inheritance
-
ObjectBaseSerializableObjectBaseManualSerializationSimpleRotation
- Implements
-
IEquatable<IObjectBase>
- Inherited Members
Constructors
SimpleRotation(RotationAxisOrAngleName, double)
Constructor getting the RotationAxisOrAngleName and the value of the rotation angle.
public SimpleRotation(RotationAxisOrAngleName rotationAxisOrAngleName, double rotationAngleValue)
Parameters
rotationAxisOrAngleNameRotationAxisOrAngleNameRotation axis or name of the rotation angle.
rotationAngleValuedoubleValue of the rotation angle in radian.
SimpleRotation(SimpleRotation)
Copy constructor.
public SimpleRotation(SimpleRotation simpleRotation)
Parameters
simpleRotationSimpleRotationSimple rotation to copy.
Properties
RotationAngleValue
Get or set the rotation angle value in radians.
public double RotationAngleValue { get; set; }
Property Value
RotationAxisOrAngleName
Get the rotation axis or angle name.
public RotationAxisOrAngleName RotationAxisOrAngleName { get; }
Property Value
Methods
Clone()
Creates a new object that is a copy of the current instance.
public override object Clone()
Returns
- object
A new object that is a copy of this instance.
Equals(object, EqualityIntent)
Determines whether the specified object is equal to this instance.
public override bool Equals(object otherObject, EqualityIntent equalityIntent)
Parameters
otherObjectobjectThe object to compare with this instance.
equalityIntentEqualityIntentDefines what kind of equality you want to check when comparing two objects, for example all values or physical equality.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToString()
Overridden string representation of this object.
public override string ToString()
Returns
- string
string representation of this object.