Struct Rotation
- Namespace
- OmegaEngine.Foundation.Geometry
- Assembly
- OmegaEngine.Foundation.dll
Rotation around three axes, in degrees.
[TypeConverter(typeof(RotationConverter))]
public struct Rotation : IEquatable<Rotation>
- Implements
- Inherited Members
Constructors
Rotation(float, float, float)
Rotation around three axes, in degrees.
public Rotation(float yaw = 0, float pitch = 0, float roll = 0)
Parameters
yawfloatRotation around the Y axis, in degrees.
pitchfloatRotation around the X axis, in degrees.
rollfloatRotation around the Z axis, in degrees.
Properties
Pitch
Rotation around the X axis, in degrees.
public float Pitch { readonly get; set; }
Property Value
Roll
Rotation around the Z axis, in degrees.
public float Roll { readonly get; set; }
Property Value
Yaw
Rotation around the Y axis, in degrees.
public float Yaw { readonly get; set; }
Property Value
Methods
Equals(Rotation)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Rotation other)
Parameters
otherRotationAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override readonly int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Operators
operator ==(Rotation, Rotation)
public static bool operator ==(Rotation left, Rotation right)
Parameters
Returns
implicit operator Matrix(Rotation)
Convert Rotation into SlimDX.Matrix
public static implicit operator Matrix(Rotation rotation)
Parameters
rotationRotation
Returns
- Matrix
implicit operator Quaternion(Rotation)
Convert Rotation into SlimDX.Quaternion
public static implicit operator Quaternion(Rotation rotation)
Parameters
rotationRotation
Returns
- Quaternion
operator !=(Rotation, Rotation)
public static bool operator !=(Rotation left, Rotation right)