iOS Guides | Samples

OpenTK.Quaternion Structure

Represents a Quaternion.

See Also: Quaternion

Syntax

public struct Quaternion : IEquatable<Quaternion>

Requirements

Namespace: OpenTK
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of OpenTK.Quaternion are listed below.

See Also: ValueType

Public Constructors

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
static
Add(ref Quaternion, ref Quaternion, out Quaternion)
Add two quaternions
Conjugate()
Convert this quaternion to its conjugate
static
Conjugate(Quaternion) : 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
override
GetHashCode() : Int32
Provides the hash code for this object.
static
Invert(Quaternion) : Quaternion
static
Invert(ref Quaternion, out Quaternion)
Get the inverse of the given quaternion
static
Mult(Quaternion, Quaternion) : Quaternion
static
Mult(ref Quaternion, ref Quaternion, out Quaternion)
static
Multiply(Quaternion, Quaternion) : Quaternion
static
Multiply(Quaternion, Single) : Quaternion
static
Multiply(ref Quaternion, ref Quaternion, out Quaternion)
static
Multiply(ref Quaternion, ref Single, out Quaternion)
static
Multiply(ref Quaternion, Single, out Quaternion)
Normalize()
Scales the Quaternion to unit length.
static
Normalize(Quaternion) : Quaternion
static
Normalize(ref Quaternion, out Quaternion)
Scale the given quaternion to unit length
static
Slerp(Quaternion, Quaternion, Single) : Quaternion
static
Sub(Quaternion, Quaternion) : Quaternion
static
Sub(ref Quaternion, ref Quaternion, out Quaternion)
Subtracts two instances.
ToAxisAngle() : Vector4
ToAxisAngle(out Vector3, out Single)
override
ToString() : String
Returns a System.String that represents the current Quaternion.

Public Operators