Struct MtQuaternion
- Namespace
- SharpPluginLoader.Core.MtTypes
- Assembly
- SharpPluginLoader.Core.dll
public struct MtQuaternion
- Inherited Members
Constructors
MtQuaternion(float, float, float, float)
public MtQuaternion(float x, float y, float z, float w)
Parameters
Fields
W
public float W
Field Value
X
public float X
Field Value
Y
public float Y
Field Value
Z
public float Z
Field Value
Properties
Angle
public readonly float Angle { get; }
Property Value
Axis
public Vector3 Axis { get; }
Property Value
Conjugate
public readonly MtQuaternion Conjugate { get; }
Property Value
EulerAngle
public readonly Vector3 EulerAngle { get; }
Property Value
Identity
public static MtQuaternion Identity { get; }
Property Value
Inverse
public readonly MtQuaternion Inverse { get; }
Property Value
Length
public readonly float Length { get; }
Property Value
LengthSquared
public readonly float LengthSquared { get; }
Property Value
Normalized
public readonly MtQuaternion Normalized { get; }
Property Value
NormalizedSafe
public readonly MtQuaternion NormalizedSafe { get; }
Property Value
One
public static MtQuaternion One { get; }
Property Value
Pitch
public readonly float Pitch { get; }
Property Value
Roll
public readonly float Roll { get; }
Property Value
UnitW
public static MtQuaternion UnitW { get; }
Property Value
UnitX
public static MtQuaternion UnitX { get; }
Property Value
UnitY
public static MtQuaternion UnitY { get; }
Property Value
UnitZ
public static MtQuaternion UnitZ { get; }
Property Value
Yaw
public readonly float Yaw { get; }
Property Value
Zero
public static MtQuaternion Zero { get; }
Property Value
Methods
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Operators
operator /(MtQuaternion, float)
public static MtQuaternion operator /(MtQuaternion q, float s)
Parameters
q
MtQuaternions
float
Returns
operator ==(MtQuaternion, MtQuaternion)
public static bool operator ==(MtQuaternion left, MtQuaternion right)
Parameters
left
MtQuaternionright
MtQuaternion
Returns
operator !=(MtQuaternion, MtQuaternion)
public static bool operator !=(MtQuaternion left, MtQuaternion right)
Parameters
left
MtQuaternionright
MtQuaternion
Returns
operator *(MtQuaternion, MtQuaternion)
public static MtQuaternion operator *(MtQuaternion l, MtQuaternion r)
Parameters
Returns
operator *(MtQuaternion, Vector3)
public static Vector3 operator *(MtQuaternion q, Vector3 v)
Parameters
q
MtQuaternionv
Vector3
Returns
operator *(MtQuaternion, Vector4)
public static Vector4 operator *(MtQuaternion q, Vector4 v)
Parameters
q
MtQuaternionv
Vector4