Type Definition oyk::ode::dQuaternion

source ·
pub type dQuaternion = [dReal; 4];

Trait Implementations§

source§

impl Quaternion for dQuaternion

source§

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

ptr mut of dQuaternion

source§

fn as_ptr(&self) -> *const dReal

ptr of dQuaternion (use for converter)

source§

fn new() -> dQuaternion

construct as Identity
source§

fn from_R(m: dMatrix3) -> dQuaternion

constructor (converter)
source§

fn to_R(&self) -> dMatrix3

converter (like as dMatrix3::from_Q(*self))
source§

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

constructor