Quaternion Structure |
Namespace: SampSharp.GameMode
public struct Quaternion : IEquatable<Quaternion>
The Quaternion type exposes the following members.
Name | Description | |
---|---|---|
Quaternion(Vector4) |
Constructs a quaternion from Vector4.
| |
Quaternion(Vector3, Single) |
Constructs a quaternion with X, Y, Z from Vector3 and rotation component from a scalar.
| |
Quaternion(Single, Single, Single, Single) |
Constructs a quaternion with X, Y, Z and W from four values.
|
Name | Description | |
---|---|---|
Identity |
Returns a quaternion representing no rotation.
| |
Length |
Gets the length of this Vector4.
| |
LengthSquared |
Gets the squared length of this Vector4.
| |
W |
Gets the rotation component of this Quaternion.
| |
X |
Gets the x-coordinate of this Quaternion.
| |
Y |
Gets the y-coordinate of this Quaternion.
| |
Z |
Gets the z-coordinate of this Quaternion.
|
Name | Description | |
---|---|---|
Concatenate |
Creates a new Quaternion that contains concatenation between two quaternion.
| |
Conjugate |
Creates a new Quaternion that contains conjugated version of the specified quaternion.
| |
CreateFromAxisAngle |
Creates a new Quaternion from the specified axis and angle.
| |
CreateFromRotationMatrix |
Creates a new Quaternion from the specified Matrix.
| |
CreateFromYawPitchRoll |
Creates a new Quaternion from the specified yaw, pitch and roll angles.
| |
Dot |
Returns a dot product of two quaternions.
| |
Equals(Object) |
Determines whether the specified Object, is equal to this instance.
(Overrides ValueTypeEquals(Object).) | |
Equals(Quaternion) |
Indicates whether the current object is equal to another object of the same type.
| |
GetHashCode |
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Lerp |
Performs a linear blend between two quaternions.
| |
Normalize |
Scales the quaternion magnitude to unit length.
| |
Slerp |
Performs a spherical linear blend between two quaternions.
| |
ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) | |
ToVector4 |
Gets a Vector4 representation for this object.
|
Name | Description | |
---|---|---|
Addition |
Adds two quaternions.
| |
Division |
Divides a Quaternion by the other Quaternion.
| |
Equality |
Compares whether two Quaternion instances are equal.
| |
Inequality |
Compares whether two Quaternion instances are not equal.
| |
Multiply(Quaternion, Quaternion) |
Multiplies two quaternions.
| |
Multiply(Quaternion, Single) |
Multiplies the components of quaternion by a scalar.
| |
Subtraction |
Subtracts a Quaternion from a Quaternion.
| |
UnaryNegation |
Flips the sign of the all the quaternion components.
|