pub trait Matrix4 {
Show 19 methods
// Required methods
fn as_ptr_mut(&mut self) -> *mut dReal;
fn as_ptr(&self) -> *const dReal;
fn is_quaternion(&self) -> bool;
fn to_Q(&self) -> dQuaternion;
fn prec_eq(&self, e: dReal, m: dMatrix4) -> bool;
fn as_mat(&self) -> ODEMat<'_>;
// Provided methods
fn new() -> dMatrix4 { ... }
fn t(m: dMatrix4) -> dMatrix4 { ... }
fn t_ptr(m: *const dReal) -> dMatrix4 { ... }
fn q_conjugate(m: dMatrix4) -> dMatrix4 { ... }
fn q_conjugate_ptr(m: *const dReal) -> dMatrix4 { ... }
fn from_Conjugate_Q(q: dQuaternion) -> dMatrix4 { ... }
fn from_Conjugate_Q_ptr(q: *const dReal) -> dMatrix4 { ... }
fn from_P(p: dQuaternion) -> dMatrix4 { ... }
fn from_P_ptr(p: *const dReal) -> dMatrix4 { ... }
fn from_Q(q: dQuaternion) -> dMatrix4 { ... }
fn from_Q_ptr(q: *const dReal) -> dMatrix4 { ... }
fn multiply0_444(a: dMatrix4, b: dMatrix4) -> dMatrix4 { ... }
fn multiply0_444_pp(a: *const dReal, b: *const dReal) -> dMatrix4 { ... }
}
Expand description
constructor and converter for primitive type
Required Methods§
Sourcefn as_ptr_mut(&mut self) -> *mut dReal
fn as_ptr_mut(&mut self) -> *mut dReal
ptr mut of dMatrix4
Sourcefn is_quaternion(&self) -> bool
fn is_quaternion(&self) -> bool
check dMatrix4 is dQuaternion
Sourcefn to_Q(&self) -> dQuaternion
fn to_Q(&self) -> dQuaternion
to dQuatrenion (check is_quaternion() before)
Provided Methods§
Sourcefn q_conjugate(m: dMatrix4) -> dMatrix4
fn q_conjugate(m: dMatrix4) -> dMatrix4
constructor (Quaternion conjugate)
Sourcefn q_conjugate_ptr(m: *const dReal) -> dMatrix4
fn q_conjugate_ptr(m: *const dReal) -> dMatrix4
constructor (Quaternion conjugate) pointer
Sourcefn from_Conjugate_Q(q: dQuaternion) -> dMatrix4
fn from_Conjugate_Q(q: dQuaternion) -> dMatrix4
constructor (converter) q: dQuaternion
Sourcefn from_Conjugate_Q_ptr(q: *const dReal) -> dMatrix4
fn from_Conjugate_Q_ptr(q: *const dReal) -> dMatrix4
constructor (converter) q: dQuaternion pointer
Sourcefn from_P(p: dQuaternion) -> dMatrix4
fn from_P(p: dQuaternion) -> dMatrix4
constructor (converter) p: dQuaternion
Sourcefn from_P_ptr(p: *const dReal) -> dMatrix4
fn from_P_ptr(p: *const dReal) -> dMatrix4
constructor (converter) p: dQuaternion pointer
Sourcefn from_Q(q: dQuaternion) -> dMatrix4
fn from_Q(q: dQuaternion) -> dMatrix4
constructor (converter) q: dQuaternion
Sourcefn from_Q_ptr(q: *const dReal) -> dMatrix4
fn from_Q_ptr(q: *const dReal) -> dMatrix4
constructor (converter) q: dQuaternion pointer
Sourcefn multiply0_444(a: dMatrix4, b: dMatrix4) -> dMatrix4
fn multiply0_444(a: dMatrix4, b: dMatrix4) -> dMatrix4
constructor multiply a: dMatrix4 and b: dMatrix4
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.