Quaternion
Represents a double-precision Quaternion.
Implementiert: IEquatable<Quaternion>
Konstruktoren
Quaternion(Vector3, double)
Construct a new Quaterniond from vector and w components
- v
- The vector part
- w
- The w part
Quaternion(double, double, double, double)
Construct a new Quaterniond
- x
- The x component
- y
- The y component
- z
- The z component
- w
- The w component
Eigenschaften
LengthSquared : double
Gets the square of the Quaterniond length (magnitude).
Methoden
Add(Quaternion, Quaternion, Quaternion)
Add two quaternions
- left
- The first operand
- right
- The second operand
- result
- The result of the addition
Add(Quaternion, Quaternion) : Quaternion
Add two quaternions
- left
- The first operand
- right
- The second operand
Rückgabe: The result of the addition
Conjugate(Quaternion, Quaternion)
Get the conjugate of the given Quaterniond
- q
- The Quaterniond
- result
- The conjugate of the given Quaterniond
Conjugate(Quaternion) : Quaternion
Get the conjugate of the given Quaterniond
- q
- The Quaterniond
Rückgabe: The conjugate of the given Quaterniond
Conjugate()
Convert this Quaterniond to its conjugate
Equals(Quaternion) : bool
Compares this Quaterniond instance to another Quaterniond for equality.
- other
- The other Quaterniond to be used in the comparison.
Rückgabe: True if both instances are equal; false otherwise.
Equals(object) : bool
Compares this object instance to another object for equality.
- other
- The other object to be used in the comparison.
Rückgabe: True if both objects are Quaternions of equal value. Otherwise it returns false.
FromAxisAngle(Vector3, double) : Quaternion
Build a Quaterniond from the given axis and angle
- axis
- The axis to rotate about
- angle
- The rotation angle in radians
GetHashCode() : int
Provides the hash code for this object.
Rückgabe: A hash code formed from the bitwise XOR of this objects members.
Invert(Quaternion, Quaternion)
Get the inverse of the given Quaterniond
- q
- The Quaterniond to invert
- result
- The inverse of the given Quaterniond
Invert(Quaternion) : Quaternion
Get the inverse of the given Quaterniond
- q
- The Quaterniond to invert
Rückgabe: The inverse of the given Quaterniond
Mult(Quaternion, Quaternion, Quaternion)
Multiplies two instances.
- left
- The first instance.
- right
- The second instance.
- result
- A new instance containing the result of the calculation.
Mult(Quaternion, Quaternion) : Quaternion
Multiplies two instances.
- left
- The first instance.
- right
- The second instance.
Rückgabe: A new instance containing the result of the calculation.
Multiply(Quaternion, double, Quaternion)
Multiplies an instance by a scalar.
- quaternion
- The instance.
- scale
- The scalar.
- result
- A new instance containing the result of the calculation.
Multiply(Quaternion, double) : Quaternion
Multiplies an instance by a scalar.
- quaternion
- The instance.
- scale
- The scalar.
Rückgabe: A new instance containing the result of the calculation.
Multiply(Quaternion, Quaternion) : Quaternion
Multiplies two instances.
- left
- The first instance.
- right
- The second instance.
Rückgabe: A new instance containing the result of the calculation.
Multiply(Quaternion, Quaternion, Quaternion)
Multiplies two instances.
- left
- The first instance.
- right
- The second instance.
- result
- A new instance containing the result of the calculation.
Normalize()
Scales the Quaterniond to unit length.
Normalize(Quaternion) : Quaternion
Scale the given Quaterniond to unit length
- q
- The Quaterniond to normalize
Rückgabe: The normalized Quaterniond
Normalize(Quaternion, Quaternion)
Scale the given Quaterniond to unit length
- q
- The Quaterniond to normalize
- result
- The normalized Quaterniond
op_Addition(Quaternion, Quaternion) : Quaternion
Adds two instances.
- left
- The first instance.
- right
- The second instance.
Rückgabe: The result of the calculation.
op_Equality(Quaternion, Quaternion) : bool
Compares two instances for equality.
- left
- The first instance.
- right
- The second instance.
Rückgabe: True, if left equals right; false otherwise.
op_Inequality(Quaternion, Quaternion) : bool
Compares two instances for inequality.
- left
- The first instance.
- right
- The second instance.
Rückgabe: True, if left does not equal right; false otherwise.
op_Multiply(double, Quaternion) : Quaternion
Multiplies an instance by a scalar.
- quaternion
- The instance.
- scale
- The scalar.
Rückgabe: A new instance containing the result of the calculation.
op_Multiply(Quaternion, double) : Quaternion
Multiplies an instance by a scalar.
- quaternion
- The instance.
- scale
- The scalar.
Rückgabe: A new instance containing the result of the calculation.
op_Multiply(Quaternion, Quaternion) : Quaternion
Multiplies two instances.
- left
- The first instance.
- right
- The second instance.
Rückgabe: The result of the calculation.
op_Subtraction(Quaternion, Quaternion) : Quaternion
Subtracts two instances.
- left
- The first instance.
- right
- The second instance.
Rückgabe: The result of the calculation.
Slerp(Quaternion, Quaternion, double) : Quaternion
Do Spherical linear interpolation between two quaternions
- q1
- The first Quaterniond
- q2
- The second Quaterniond
- blend
- The blend factor
Rückgabe: A smooth blend between the given quaternions
Sub(Quaternion, Quaternion, Quaternion)
Subtracts two instances.
- left
- The left instance.
- right
- The right instance.
- result
- The result of the operation.
Sub(Quaternion, Quaternion) : Quaternion
Subtracts two instances.
- left
- The left instance.
- right
- The right instance.
Rückgabe: The result of the operation.
ToAxisAngle(Vector3, double)
Convert the current quaternion to axis angle representation
- axis
- The resultant axis
- angle
- The resultant angle
ToAxisAngle() : Vector4
Convert this instance to an axis-angle representation.
Rückgabe: A Vector4 that is the axis-angle representation of this quaternion.
Felder
Identity : Quaternion
Defines the identity quaternion.