Skip to main content

Matrix4

Trait Matrix4 

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

Source

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

ptr mut of dMatrix4

Source

fn as_ptr(&self) -> *const f64

ptr of dMatrix4 (use for converter)

Source

fn is_quaternion(&self) -> bool

check dMatrix4 is dQuaternion

Source

fn to_Q(&self) -> [f64; 4]

to dQuatrenion (check is_quaternion() before)

Source

fn prec_eq(&self, e: f64, m: [f64; 16]) -> bool

check equal with precision

Source

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

for Debug

Provided Methods§

Source

fn new() -> [f64; 16]

construct as Identity

Source

fn t(m: [f64; 16]) -> [f64; 16]

constructor (transpose)

Source

fn t_ptr(m: *const f64) -> [f64; 16]

constructor (transpose) pointer

Source

fn q_conjugate(m: [f64; 16]) -> [f64; 16]

constructor (Quaternion conjugate)

Source

fn q_conjugate_ptr(m: *const f64) -> [f64; 16]

constructor (Quaternion conjugate) pointer

Source

fn from_Conjugate_Q(q: [f64; 4]) -> [f64; 16]

constructor (converter) q: dQuaternion

Source

fn from_Conjugate_Q_ptr(q: *const f64) -> [f64; 16]

constructor (converter) q: dQuaternion pointer

Source

fn from_P(p: [f64; 4]) -> [f64; 16]

constructor (converter) p: dQuaternion

Source

fn from_P_ptr(p: *const f64) -> [f64; 16]

constructor (converter) p: dQuaternion pointer

Source

fn from_Q(q: [f64; 4]) -> [f64; 16]

constructor (converter) q: dQuaternion

Source

fn from_Q_ptr(q: *const f64) -> [f64; 16]

constructor (converter) q: dQuaternion pointer

Source

fn multiply0_444(a: [f64; 16], b: [f64; 16]) -> [f64; 16]

constructor multiply a: dMatrix4 and b: dMatrix4

Source

fn multiply0_444_pp(a: *const f64, b: *const f64) -> [f64; 16]

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".

Implementations on Foreign Types§

Source§

impl Matrix4 for [f64; 16]

Source§

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

ptr mut of dMatrix4

Source§

fn as_ptr(&self) -> *const f64

ptr of dMatrix4 (use for converter)

Source§

fn is_quaternion(&self) -> bool

check dMatrix4 is dQuaternion

Source§

fn to_Q(&self) -> [f64; 4]

to dQuatrenion (check is_quaternion() before)

Source§

fn prec_eq(&self, e: f64, m: [f64; 16]) -> bool

check equal with precision

Source§

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

for Debug

Implementors§