pub trait TQuaternion<F: Float + Debug> {
// Required methods
fn from_axis_and_angle(v: &Vector3<F>, a: F) -> Self;
fn identity() -> Self;
fn conjugate(&self) -> Self;
fn me(&self) -> &Quaternion<F>;
fn to_m4_left(&self) -> Matrix4<F>;
fn to_m4_right(&self) -> Matrix4<F>;
fn to_m4_rot(&self) -> Matrix4<F>;
}
Expand description
TQuaternion
Required Methods§
Sourcefn from_axis_and_angle(v: &Vector3<F>, a: F) -> Self
fn from_axis_and_angle(v: &Vector3<F>, a: F) -> Self
constructor
Sourcefn me(&self) -> &Quaternion<F>
fn me(&self) -> &Quaternion<F>
like as ref
Sourcefn to_m4_left(&self) -> Matrix4<F>
fn to_m4_left(&self) -> Matrix4<F>
to Matrix4 (qp = Q4x4 p4)
Sourcefn to_m4_right(&self) -> Matrix4<F>
fn to_m4_right(&self) -> Matrix4<F>
to Matrix4 (qp = P4x4 q4)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl<F: Float + Debug + Sum> TQuaternion<F> for Quaternion<F>
TQuaternion for Quaternion