Quaternion
Quaternion
Struct
Definition
[System.Serializable]
public struct Quaternion : IEquatable<OpenTK.Quaternion>
type Quaternion = struct
 Inheritance

 Attributes

 Implements

Constructors
Fields
Properties
Length
Length

Gets the length (magnitude) of the quaternion.

LengthSquared
LengthSquared

Gets the square of the quaternion length (magnitude).

W
W

Gets or sets the W component of this instance.

X
X

Gets or sets the X component of this instance.

Xyz
Xyz

Gets or sets an OpenTK.Vector3 with the X, Y and Z components of this instance.

XYZ
XYZ

Gets or sets an OpenTK.Vector3 with the X, Y and Z components of this instance.

Y
Y

Gets or sets the Y component of this instance.

Z
Z

Gets or sets the Z component of this instance.

Methods
Add(Quaternion, Quaternion)
Add(Quaternion, Quaternion)

Add(Quaternion, Quaternion, Quaternion)
Add(Quaternion, Quaternion, Quaternion)

Add two quaternions

Conjugate()
Conjugate()

Convert this quaternion to its conjugate

Conjugate(Quaternion)
Conjugate(Quaternion)

Conjugate(Quaternion, Quaternion)
Conjugate(Quaternion, Quaternion)

Get the conjugate of the given quaternion

Equals(Quaternion)
Equals(Quaternion)

Compares this Quaternion instance to another Quaternion for equality.

Equals(Object)
Equals(Object)

Compares this object instance to another object for equality.

FromAxisAngle(Vector3, Single)
FromAxisAngle(Vector3, Single)

GetHashCode()
GetHashCode()

Provides the hash code for this object.

Invert(Quaternion)
Invert(Quaternion)

Invert(Quaternion, Quaternion)
Invert(Quaternion, Quaternion)

Get the inverse of the given quaternion

Mult(Quaternion, Quaternion)
Mult(Quaternion, Quaternion)

Mult(Quaternion, Quaternion, Quaternion)
Mult(Quaternion, Quaternion, Quaternion)

Multiply(Quaternion, Single, Quaternion)
Multiply(Quaternion, Single, Quaternion)

Multiply(Quaternion, Quaternion, Quaternion)
Multiply(Quaternion, Quaternion, Quaternion)

Multiply(Quaternion, Single, Quaternion)
Multiply(Quaternion, Single, Quaternion)

Multiply(Quaternion, Quaternion)
Multiply(Quaternion, Quaternion)

Multiply(Quaternion, Single)
Multiply(Quaternion, Single)

Normalize()
Normalize()

Scales the Quaternion to unit length.

Normalize(Quaternion)
Normalize(Quaternion)

Normalize(Quaternion, Quaternion)
Normalize(Quaternion, Quaternion)

Scale the given quaternion to unit length

Slerp(Quaternion, Quaternion, Single)
Slerp(Quaternion, Quaternion, Single)

Sub(Quaternion, Quaternion)
Sub(Quaternion, Quaternion)

Sub(Quaternion, Quaternion, Quaternion)
Sub(Quaternion, Quaternion, Quaternion)

Subtracts two instances.

ToAxisAngle()
ToAxisAngle()

ToAxisAngle(Vector3, Single)
ToAxisAngle(Vector3, Single)

ToString()
ToString()

Returns a System.String that represents the current Quaternion.

Operators
Addition(Quaternion, Quaternion)
Addition(Quaternion, Quaternion)

Equality(Quaternion, Quaternion)
Equality(Quaternion, Quaternion)

Inequality(Quaternion, Quaternion)
Inequality(Quaternion, Quaternion)

Multiply(Single, Quaternion)
Multiply(Single, Quaternion)

Multiply(Quaternion, Quaternion)
Multiply(Quaternion, Quaternion)

Multiply(Quaternion, Single)
Multiply(Quaternion, Single)

Subtraction(Quaternion, Quaternion)
Subtraction(Quaternion, Quaternion)

Applies to