[−][src]Type Definition quick_maths::quat::Quat
type Quat<T = DefaultFloat> = Vec4<T>;
Quats are Vec4's with implicit imaginary first three terms.
Implementations
impl<T: Float> Quat<T>
[src]
pub fn conj(self) -> Self
[src]
pub fn is_unit(&self) -> bool
[src]
pub fn scale(&self, factor: T) -> Self
[src]
Encodes a scaling factor into the quaternion
pub fn rot(along: &Vec3<T>) -> Self
[src]
Returns a quaternion which is a rotation in the 3 dimensions given