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

Object Safety§

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§