Mac Guides | Samples

MonoMac.OpenGL.Quaternion Structure

Represents a Quaternion.

See Also: Quaternion

Syntax

public struct Quaternion : IEquatable<Quaternion>

Requirements

Namespace: MonoMac.OpenGL
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0

The members of MonoMac.OpenGL.Quaternion are listed below.

See Also: ValueType

Public Constructors

Construct a new Quaternion from vector and w components
Construct a new Quaternion

Public Fields

static
IdentityQuaternion. Defines the identity quaternion.

Public Properties

[read-only]
LengthSingle. Gets the length (magnitude) of the quaternion.
[read-only]
LengthSquaredSingle. Gets the square of the quaternion length (magnitude).
WSingle. Gets or sets the W component of this instance.
XSingle. Gets or sets the X component of this instance.
XyzVector3. Gets or sets an OpenTK.Vector3 with the X, Y and Z components of this instance.
XYZVector3. Gets or sets an OpenTK.Vector3 with the X, Y and Z components of this instance.
YSingle. Gets or sets the Y component of this instance.
ZSingle. Gets or sets the Z component of this instance.

Public Methods

static
Add(Quaternion, Quaternion) : Quaternion
Add two quaternions
static
Add(ref Quaternion, ref Quaternion, out Quaternion)
Add two quaternions
Conjugate()
Convert this quaternion to its conjugate
static
Conjugate(Quaternion) : Quaternion
Get the conjugate of the given quaternion
static
Conjugate(ref Quaternion, out Quaternion)
Get the conjugate of the given quaternion
Equals(Quaternion) : Boolean
Compares this Quaternion instance to another Quaternion for equality.
override
Equals(Object) : Boolean
Compares this object instance to another object for equality.
static
FromAxisAngle(Vector3, Single) : Quaternion
Build a quaternion from the given axis and angle
override
GetHashCode() : Int32
Provides the hash code for this object.
static
Invert(Quaternion) : Quaternion
Get the inverse of the given quaternion
static
Invert(ref Quaternion, out Quaternion)
Get the inverse of the given quaternion
static
Mult(Quaternion, Quaternion) : Quaternion
Multiplies two instances.
static
Mult(ref Quaternion, ref Quaternion, out Quaternion)
Multiplies two instances.
static
Multiply(Quaternion, Quaternion) : Quaternion
Multiplies two instances.
static
Multiply(Quaternion, Single) : Quaternion
Multiplies an instance by a scalar.
static
Multiply(ref Quaternion, ref Quaternion, out Quaternion)
Multiplies two instances.
static
Multiply(ref Quaternion, Single, out Quaternion)
Multiplies an instance by a scalar.
Normalize()
Scales the Quaternion to unit length.
static
Normalize(Quaternion) : Quaternion
Scale the given quaternion to unit length
static
Normalize(ref Quaternion, out Quaternion)
Scale the given quaternion to unit length
static
Slerp(Quaternion, Quaternion, Single) : Quaternion
Do Spherical linear interpolation between two quaternions
static
Sub(Quaternion, Quaternion) : Quaternion
Subtracts two instances.
static
Sub(ref Quaternion, ref Quaternion, out Quaternion)
Subtracts two instances.
ToAxisAngle() : Vector4
Convert this instance to an axis-angle representation.
ToAxisAngle(out Vector3, out Single)
Convert the current quaternion to axis angle representation
override
ToString() : String
Returns a System.String that represents the current Quaternion.

Public Operators

static
Addition(Quaternion, Quaternion) Adds two instances.
static
Equality(Quaternion, Quaternion) Compares two instances for equality.
static
Inequality(Quaternion, Quaternion) Compares two instances for inequality.
static
Multiply(Quaternion, Quaternion) Multiplies two instances.
static
Multiply(Quaternion, Single) Multiplies an instance by a scalar.
static
Multiply(Single, Quaternion) Multiplies an instance by a scalar.
static
Subtraction(Quaternion, Quaternion) Subtracts two instances.