#[repr(C)]pub struct MathApi {
pub mat44_multiply: Option<unsafe extern "C" fn(res: *mut Mat44T, lhs: *const Mat44T, rhs: *const Mat44T)>,
pub mat44_inverse: Option<unsafe extern "C" fn(res: *mut Mat44T, m: *const Mat44T)>,
pub mat44_determinant: Option<unsafe extern "C" fn(m: *const Mat44T) -> f32>,
pub mat44_determinant33: Option<unsafe extern "C" fn(m: *const Mat44T) -> f32>,
pub mat44_to_quaternion: Option<unsafe extern "C" fn(m: *const Mat44T) -> Vec4T>,
pub mat44_to_translation_quaternion_scale: Option<unsafe extern "C" fn(t: *mut Vec3T, r: *mut Vec4T, s: *mut Vec3T, m: *const Mat44T)>,
}
Fields§
§mat44_multiply: Option<unsafe extern "C" fn(res: *mut Mat44T, lhs: *const Mat44T, rhs: *const Mat44T)>
§mat44_inverse: Option<unsafe extern "C" fn(res: *mut Mat44T, m: *const Mat44T)>
§mat44_determinant: Option<unsafe extern "C" fn(m: *const Mat44T) -> f32>
§mat44_determinant33: Option<unsafe extern "C" fn(m: *const Mat44T) -> f32>
§mat44_to_quaternion: Option<unsafe extern "C" fn(m: *const Mat44T) -> Vec4T>
§mat44_to_translation_quaternion_scale: Option<unsafe extern "C" fn(t: *mut Vec3T, r: *mut Vec4T, s: *mut Vec3T, m: *const Mat44T)>
Implementations§
Source§impl MathApi
impl MathApi
pub unsafe fn mat44_multiply( &self, res: *mut Mat44T, lhs: *const Mat44T, rhs: *const Mat44T, )
pub unsafe fn mat44_inverse(&self, res: *mut Mat44T, m: *const Mat44T)
pub unsafe fn mat44_determinant(&self, m: *const Mat44T) -> f32
pub unsafe fn mat44_determinant33(&self, m: *const Mat44T) -> f32
pub unsafe fn mat44_to_quaternion(&self, m: *const Mat44T) -> Vec4T
pub unsafe fn mat44_to_translation_quaternion_scale( &self, t: *mut Vec3T, r: *mut Vec4T, s: *mut Vec3T, m: *const Mat44T, )
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MathApi
impl RefUnwindSafe for MathApi
impl Send for MathApi
impl Sync for MathApi
impl Unpin for MathApi
impl UnwindSafe for MathApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more