Edytuj

Udostępnij za pośrednictwem


CMQuaternion Struct

Definition

Represents a Quaternion, used as one of the possible CMAttitude representations.

public struct CMQuaternion
type CMQuaternion = struct
Inheritance
CMQuaternion

Remarks

Quaternions can be used to specify a non-ambiguous rotation. They avoid the issue of gymbal lock and are simpler to compose.

Constructors

CMQuaternion(Double, Double, Double, Double)

Constructs a new CMQuaternion with the specified components.

Fields

w

The real part of the quaternion.

x

The imaginary x component.

y

The imaginary y component.

z

The imaginary z component.

Methods

ToString()

In the form $"quaternion({x},{y},{z},{w}").

Applies to