Upravit

Sdílet prostřednictvím


Quaternion Struct

Definition

Represents a Quaternion.

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

Constructors

Quaternion(Matrix3)
Quaternion(Single, Single, Single, Single)

Construct a new Quaternion

Quaternion(Vector3, Single)

Fields

Identity

Defines the identity quaternion.

Properties

Length

Gets the length (magnitude) of the quaternion.

LengthSquared

Gets the square of the quaternion 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.Vector3 with the X, Y and Z components of this instance.

XYZ
Obsolete.

Gets or sets an OpenTK.Vector3 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(Quaternion, Quaternion, Quaternion)

Add two quaternions

Add(Quaternion, Quaternion)
Conjugate()

Convert this quaternion to its conjugate

Conjugate(Quaternion, Quaternion)

Get the conjugate of the given quaternion

Conjugate(Quaternion)
Equals(Object)

Compares this object instance to another object for equality.

Equals(Quaternion)

Compares this Quaternion instance to another Quaternion for equality.

FromAxisAngle(Vector3, Single)
GetHashCode()

Provides the hash code for this object.

Invert(Quaternion, Quaternion)

Get the inverse of the given quaternion

Invert(Quaternion)
Mult(Quaternion, Quaternion, Quaternion)
Mult(Quaternion, Quaternion)
Multiply(Quaternion, Quaternion, Quaternion)
Multiply(Quaternion, Quaternion)
Multiply(Quaternion, Single, Quaternion)
Multiply(Quaternion, Single, Quaternion)
Multiply(Quaternion, Single)
Normalize()

Scales the Quaternion to unit length.

Normalize(Quaternion, Quaternion)

Scale the given quaternion to unit length

Normalize(Quaternion)
Slerp(Quaternion, Quaternion, Single)
Sub(Quaternion, Quaternion, Quaternion)

Subtracts two instances.

Sub(Quaternion, Quaternion)
ToAxisAngle()
ToAxisAngle(Vector3, Single)
ToString()

Returns a System.String that represents the current Quaternion.

Operators

Addition(Quaternion, Quaternion)
Equality(Quaternion, Quaternion)
Inequality(Quaternion, Quaternion)
Multiply(Quaternion, Quaternion)
Multiply(Quaternion, Single)
Multiply(Single, Quaternion)
Subtraction(Quaternion, Quaternion)

Applies to