Trait ode_rs::ode::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

Object Safety§

This trait is not object safe.

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§