Struct mint::Quaternion
source · [−]#[repr(C)]pub struct Quaternion<T> {
pub v: Vector3<T>,
pub s: T,
}
Expand description
Standard quaternion represented by the scalar and vector parts. Useful for representing rotation in 3D space. Corresponds to a right-handed rotation matrix.
Fields
v: Vector3<T>
Vector part of a quaternion.
s: T
Scalar part of a quaternion.
Trait Implementations
Performs the conversion.
type MintType = Quaternion<T>
type MintType = Quaternion<T>
The mint type that this type is associated with.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more