Trait Matrix3

Source
pub trait Matrix3 {
Show 15 methods // Required methods fn as_ptr_mut(&mut self) -> *mut dReal; fn as_ptr(&self) -> *const dReal; fn prec_eq(&self, e: dReal, m: dMatrix3) -> bool; fn as_mat(&self) -> ODEMat<'_>; // Provided methods fn new() -> dMatrix3 { ... } fn t(m: dMatrix3) -> dMatrix3 { ... } fn t_ptr(m: *const dReal) -> dMatrix3 { ... } fn from_Q(q: dQuaternion) -> dMatrix3 { ... } fn to_Q(&self) -> dQuaternion { ... } fn from_axis_and_angle(axis: [dReal; 3], angle: dReal) -> dMatrix3 { ... } fn from_euler_angles(phi: dReal, theta: dReal, psi: dReal) -> dMatrix3 { ... } fn from_2_axes(e0: [dReal; 3], e1: [dReal; 3]) -> dMatrix3 { ... } fn from_z_axis(e: [dReal; 3]) -> dMatrix3 { ... } fn multiply0_333(a: dMatrix3, b: dMatrix3) -> dMatrix3 { ... } fn multiply0_333_pp(a: *const dReal, b: *const dReal) -> dMatrix3 { ... }
}
Expand description

constructor and converter for primitive type

Required Methods§

Source

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

ptr mut of dMatrix3

Source

fn as_ptr(&self) -> *const dReal

ptr of dMatrix3 (use for converter)

Source

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

check equal with precision

Source

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

for Debug

Provided Methods§

Source

fn new() -> dMatrix3

construct as Identity

Source

fn t(m: dMatrix3) -> dMatrix3

constructor (transpose illegular order)

Source

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

constructor (transpose illegular order) pointer

Source

fn from_Q(q: dQuaternion) -> dMatrix3

constructor (converter)

Source

fn to_Q(&self) -> dQuaternion

converter (like as dQuaternion::from_R(*self))

Source

fn from_axis_and_angle(axis: [dReal; 3], angle: dReal) -> dMatrix3

constructor

Source

fn from_euler_angles(phi: dReal, theta: dReal, psi: dReal) -> dMatrix3

constructor

Source

fn from_2_axes(e0: [dReal; 3], e1: [dReal; 3]) -> dMatrix3

constructor

Source

fn from_z_axis(e: [dReal; 3]) -> dMatrix3

constructor

Source

fn multiply0_333(a: dMatrix3, b: dMatrix3) -> dMatrix3

constructor multiply a: dMatrix3 and b: dMatrix3

Source

fn multiply0_333_pp(a: *const dReal, b: *const dReal) -> dMatrix3

constructor multiply a: dMatrix3 pointer and b: dMatrix3 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§