Trait Matrix4

Source
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§

Source

fn as_ptr_mut(&mut self) -> *mut dReal

ptr mut of dMatrix4

Source

fn as_ptr(&self) -> *const dReal

ptr of dMatrix4 (use for converter)

Source

fn is_quaternion(&self) -> bool

check dMatrix4 is dQuaternion

Source

fn to_Q(&self) -> dQuaternion

to dQuatrenion (check is_quaternion() before)

Source

fn prec_eq(&self, e: dReal, m: dMatrix4) -> bool

check equal with precision

Source

fn as_mat(&self) -> ODEMat<'_>

for Debug

Provided Methods§

Source

fn new() -> dMatrix4

construct as Identity

Source

fn t(m: dMatrix4) -> dMatrix4

constructor (transpose)

Source

fn t_ptr(m: *const dReal) -> dMatrix4

constructor (transpose) pointer

Source

fn q_conjugate(m: dMatrix4) -> dMatrix4

constructor (Quaternion conjugate)

Source

fn q_conjugate_ptr(m: *const dReal) -> dMatrix4

constructor (Quaternion conjugate) pointer

Source

fn from_Conjugate_Q(q: dQuaternion) -> dMatrix4

constructor (converter) q: dQuaternion

Source

fn from_Conjugate_Q_ptr(q: *const dReal) -> dMatrix4

constructor (converter) q: dQuaternion pointer

Source

fn from_P(p: dQuaternion) -> dMatrix4

constructor (converter) p: dQuaternion

Source

fn from_P_ptr(p: *const dReal) -> dMatrix4

constructor (converter) p: dQuaternion pointer

Source

fn from_Q(q: dQuaternion) -> dMatrix4

constructor (converter) q: dQuaternion

Source

fn from_Q_ptr(q: *const dReal) -> dMatrix4

constructor (converter) q: dQuaternion pointer

Source

fn multiply0_444(a: dMatrix4, b: dMatrix4) -> dMatrix4

constructor multiply a: dMatrix4 and b: dMatrix4

Source

fn multiply0_444_pp(a: *const dReal, b: *const dReal) -> dMatrix4

constructor multiply a: dMatrix4 pointer and b: dMatrix4 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.

Implementors§