Click or drag to resize
Quaternion Structure
Represents a quaternion rotation.

Namespace: SampSharp.GameMode
Assembly: SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.7.6221.37952
Syntax
public struct Quaternion : IEquatable<Quaternion>

The Quaternion type exposes the following members.

Constructors
  NameDescription
Public methodQuaternion(Vector4)
Constructs a quaternion from Vector4.
Public methodQuaternion(Vector3, Single)
Constructs a quaternion with X, Y, Z from Vector3 and rotation component from a scalar.
Public methodQuaternion(Single, Single, Single, Single)
Constructs a quaternion with X, Y, Z and W from four values.
Top
Properties
  NameDescription
Public propertyStatic memberIdentity
Returns a quaternion representing no rotation.
Public propertyLength
Gets the length of this Vector4.
Public propertyLengthSquared
Gets the squared length of this Vector4.
Public propertyW
Gets the rotation component of this Quaternion.
Public propertyX
Gets the x-coordinate of this Quaternion.
Public propertyY
Gets the y-coordinate of this Quaternion.
Public propertyZ
Gets the z-oordinate of this Quaternion.
Top
Methods
  NameDescription
Public methodStatic memberConcatenate
Creates a new Quaternion that contains concatenation between two quaternion.
Public methodStatic memberConjugate
Creates a new Quaternion that contains conjugated version of the specified quaternion.
Public methodStatic memberCreateFromAxisAngle
Creates a new Quaternion from the specified axis and angle.
Public methodStatic memberCreateFromRotationMatrix
Creates a new Quaternion from the specified Matrix.
Public methodStatic memberCreateFromYawPitchRoll
Creates a new Quaternion from the specified yaw, pitch and roll angles.
Public methodStatic memberDot
Returns a dot product of two quaternions.
Public methodEquals(Object) (Overrides ValueTypeEquals(Object).)
Public methodEquals(Quaternion)
Public methodGetHashCode (Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberLerp
Performs a linear blend between two quaternions.
Public methodStatic memberNormalize
Scales the quaternion magnitude to unit length.
Public methodStatic memberSlerp
Performs a spherical linear blend between two quaternions.
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Public methodToVector4
Gets a Vector4 representation for this object.
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds two quaternions.
Public operatorStatic memberDivision
Divides a Quaternion by the other Quaternion.
Public operatorStatic memberEquality
Compares whether two Quaternion instances are equal.
Public operatorStatic memberInequality
Compares whether two Quaternion instances are not equal.
Public operatorStatic memberMultiply(Quaternion, Quaternion)
Multiplies two quaternions.
Public operatorStatic memberMultiply(Quaternion, Single)
Multiplies the components of quaternion by a scalar.
Public operatorStatic memberSubtraction
Subtracts a Quaternion from a Quaternion.
Public operatorStatic memberUnaryNegation
Flips the sign of the all the quaternion components.
Top
See Also