Struct e2rcore::implement::math::mat::Mat3
[−]
[src]
pub struct Mat3<T> where
T: Copy + Clone, { pub _val: [T; 9], pub _is_row_major: bool, }
Fields
_val: [T; 9]
_is_row_major: bool
Methods
impl Mat3<f32>[src]
fn init(arr: [f32; 9], row_major: bool) -> Mat3<f32>[src]
fn iden() -> Mat3<f32>[src]
fn trace(&self) -> f32[src]
fn index(&self, m: u64, n: u64) -> f32[src]
fn index_mut(&mut self, m: u64, n: u64) -> &mut f32[src]
fn size(&self) -> Option<u32>[src]
fn mul_elem(&self, other: &Mat3<f32>) -> Option<Mat3<f32>>[src]
fn mul(&self, other: &Mat3<f32>) -> Option<Mat3<f32>>[src]
fn mul_mat3x1(&self, other: &Mat3x1<f32>) -> Option<Mat3x1<f32>>[src]
fn div(&self, other: &Mat3<f32>) -> Option<Mat3<f32>>[src]
fn plus(&self, other: &Mat3<f32>) -> Option<Mat3<f32>>[src]
fn minus(&self, other: &Mat3<f32>) -> Option<Mat3<f32>>[src]
fn dot(&self, other: &Mat3<f32>) -> Option<f32>[src]
fn cross(&self, other: &Self) -> Option<Self>[src]
fn magnitude(&self) -> Option<f32>[src]
fn normalize(self) -> Option<Self>[src]
fn scale(&self, s: f32) -> Option<Self>[src]
fn transpose_self(&mut self)[src]
fn transpose(self) -> Mat3<f32>[src]
fn inverse(&self) -> Option<Mat3<f32>>[src]
impl Mat3<f64>[src]
fn init(arr: [f64; 9], row_major: bool) -> Mat3<f64>[src]
fn iden() -> Mat3<f64>[src]
fn trace(&self) -> f64[src]
fn index(&self, m: u64, n: u64) -> f64[src]
fn index_mut(&mut self, m: u64, n: u64) -> &mut f64[src]
fn size(&self) -> Option<u32>[src]
fn mul_elem(&self, other: &Mat3<f64>) -> Option<Mat3<f64>>[src]
fn mul(&self, other: &Mat3<f64>) -> Option<Mat3<f64>>[src]
fn mul_mat3x1(&self, other: &Mat3x1<f64>) -> Option<Mat3x1<f64>>[src]
fn div(&self, other: &Mat3<f64>) -> Option<Mat3<f64>>[src]
fn plus(&self, other: &Mat3<f64>) -> Option<Mat3<f64>>[src]
fn minus(&self, other: &Mat3<f64>) -> Option<Mat3<f64>>[src]
fn dot(&self, other: &Mat3<f64>) -> Option<f64>[src]
fn cross(&self, other: &Self) -> Option<Self>[src]
fn magnitude(&self) -> Option<f64>[src]
fn normalize(self) -> Option<Self>[src]
fn scale(&self, s: f64) -> Option<Self>[src]
fn transpose_self(&mut self)[src]
fn transpose(self) -> Mat3<f64>[src]
fn inverse(&self) -> Option<Mat3<f64>>[src]
Trait Implementations
impl<T: Debug> Debug for Mat3<T> where
T: Copy + Clone, [src]
T: Copy + Clone,
impl<T: Copy> Copy for Mat3<T> where
T: Copy + Clone, [src]
T: Copy + Clone,
impl<T: Clone> Clone for Mat3<T> where
T: Copy + Clone, [src]
T: Copy + Clone,
fn clone(&self) -> Mat3<T>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more