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§
Sourcefn as_ptr_mut(&mut self) -> *mut dReal
fn as_ptr_mut(&mut self) -> *mut dReal
ptr mut of dMatrix3
Provided Methods§
Sourcefn from_Q(q: dQuaternion) -> dMatrix3
fn from_Q(q: dQuaternion) -> dMatrix3
constructor (converter)
Sourcefn to_Q(&self) -> dQuaternion
fn to_Q(&self) -> dQuaternion
converter (like as dQuaternion::from_R(*self))
Sourcefn from_z_axis(e: [dReal; 3]) -> dMatrix3
fn from_z_axis(e: [dReal; 3]) -> dMatrix3
constructor
Sourcefn multiply0_333(a: dMatrix3, b: dMatrix3) -> dMatrix3
fn multiply0_333(a: dMatrix3, b: dMatrix3) -> dMatrix3
constructor multiply a: dMatrix3 and b: dMatrix3
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.