Trait Matrix3

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

constructor and converter for primitive type

Required Methods§

Source

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

ptr mut of dMatrix3

Source

fn as_ptr(&self) -> *const f64

ptr of dMatrix3 (use for converter)

Source

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

check equal with precision

Source

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

for Debug

Provided Methods§

Source

fn new() -> [f64; 12]

construct as Identity

Source

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

constructor (transpose illegular order)

Source

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

constructor (transpose illegular order) pointer

Source

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

constructor (converter)

Source

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

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

Source

fn from_axis_and_angle(axis: [f64; 3], angle: f64) -> [f64; 12]

constructor

Source

fn from_euler_angles(phi: f64, theta: f64, psi: f64) -> [f64; 12]

constructor

Source

fn from_2_axes(e0: [f64; 3], e1: [f64; 3]) -> [f64; 12]

constructor

Source

fn from_z_axis(e: [f64; 3]) -> [f64; 12]

constructor

Source

fn multiply0_333(a: [f64; 12], b: [f64; 12]) -> [f64; 12]

constructor multiply a: dMatrix3 and b: dMatrix3

Source

fn multiply0_333_pp(a: *const f64, b: *const f64) -> [f64; 12]

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.

Implementations on Foreign Types§

Source§

impl Matrix3 for [f64; 12]

Source§

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

ptr mut of dMatrix3

Source§

fn as_ptr(&self) -> *const f64

ptr of dMatrix3 (use for converter)

Source§

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

check equal with precision

Source§

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

for Debug

Implementors§