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