Quaterniond Struct

Definition

Represents a double-precision Quaternion.

[System.Serializable]
public struct Quaterniond : IEquatable<OpenTK.Quaterniond>
type Quaterniond = struct
Inheritance
Quaterniond
Attributes
Implements

Constructors

Quaterniond(Double, Double, Double, Double)

Construct a new Quaterniond

Quaterniond(Vector3d, Double)

Fields

Identity

Defines the identity quaternion.

Properties

Length

Gets the length (magnitude) of the Quaterniond.

LengthSquared

Gets the square of the Quaterniond length (magnitude).

W

Gets or sets the W component of this instance.

X

Gets or sets the X component of this instance.

Xyz

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

XYZ
Obsolete.

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

Y

Gets or sets the Y component of this instance.

Z

Gets or sets the Z component of this instance.

Methods

Add(Quaterniond, Quaterniond)
Add(Quaterniond, Quaterniond, Quaterniond)

Add two quaternions

Conjugate()

Convert this Quaterniond to its conjugate

Conjugate(Quaterniond)
Conjugate(Quaterniond, Quaterniond)

Get the conjugate of the given Quaterniond

Equals(Object)

Compares this object instance to another object for equality.

Equals(Quaterniond)

Compares this Quaterniond instance to another Quaterniond for equality.

FromAxisAngle(Vector3d, Double)
GetHashCode()

Provides the hash code for this object.

Invert(Quaterniond)
Invert(Quaterniond, Quaterniond)

Get the inverse of the given Quaterniond

Mult(Quaterniond, Quaterniond)
Mult(Quaterniond, Quaterniond, Quaterniond)
Multiply(Quaterniond, Double)
Multiply(Quaterniond, Double, Quaterniond)
Multiply(Quaterniond, Double, Quaterniond)
Multiply(Quaterniond, Quaterniond)
Multiply(Quaterniond, Quaterniond, Quaterniond)
Normalize()

Scales the Quaterniond to unit length.

Normalize(Quaterniond)
Normalize(Quaterniond, Quaterniond)

Scale the given Quaterniond to unit length

Slerp(Quaterniond, Quaterniond, Double)
Sub(Quaterniond, Quaterniond)
Sub(Quaterniond, Quaterniond, Quaterniond)

Subtracts two instances.

ToAxisAngle()
ToAxisAngle(Vector3d, Double)
ToString()

Returns a System.String that represents the current Quaterniond.

Operators

Addition(Quaterniond, Quaterniond)
Equality(Quaterniond, Quaterniond)
Inequality(Quaterniond, Quaterniond)
Multiply(Double, Quaterniond)
Multiply(Quaterniond, Double)
Multiply(Quaterniond, Quaterniond)
Subtraction(Quaterniond, Quaterniond)

Applies to