[][src]Struct mazth::mat::Mat1x4

pub struct Mat1x4<T> where
    T: Copy + Clone
{ pub _val: [T; 4], }

Fields

_val: [T; 4]

Methods

impl Mat1x4<f32>[src]

pub fn size(&self) -> Option<usize>[src]

pub fn mul_elem(&self, other: &Mat1x4<f32>) -> Option<Mat1x4<f32>>[src]

pub fn mul_mat4x4(&self, other: &Mat4<f32>) -> Option<Mat1x4<f32>>[src]

pub fn div(&self, other: &Mat1x4<f32>) -> Option<Mat1x4<f32>>[src]

pub fn plus(&self, other: &Mat1x4<f32>) -> Option<Mat1x4<f32>>[src]

pub fn minus(&self, other: &Mat1x4<f32>) -> Option<Mat1x4<f32>>[src]

pub fn dot(&self, other: &Mat1x4<f32>) -> Option<f32>[src]

pub fn cross(&self, other: &Self) -> Option<Self>[src]

pub fn magnitude(&self) -> Option<f32>[src]

pub fn normalize(self) -> Option<Self>[src]

pub fn scale(&self, s: f32) -> Option<Self>[src]

pub fn transpose(self) -> Mat4x1<f32>[src]

impl Mat1x4<f64>[src]

pub fn size(&self) -> Option<usize>[src]

pub fn mul_elem(&self, other: &Mat1x4<f64>) -> Option<Mat1x4<f64>>[src]

pub fn mul_mat4x4(&self, other: &Mat4<f64>) -> Option<Mat1x4<f64>>[src]

pub fn div(&self, other: &Mat1x4<f64>) -> Option<Mat1x4<f64>>[src]

pub fn plus(&self, other: &Mat1x4<f64>) -> Option<Mat1x4<f64>>[src]

pub fn minus(&self, other: &Mat1x4<f64>) -> Option<Mat1x4<f64>>[src]

pub fn dot(&self, other: &Mat1x4<f64>) -> Option<f64>[src]

pub fn cross(&self, other: &Self) -> Option<Self>[src]

pub fn magnitude(&self) -> Option<f64>[src]

pub fn normalize(self) -> Option<Self>[src]

pub fn scale(&self, s: f64) -> Option<Self>[src]

pub fn transpose(self) -> Mat4x1<f64>[src]

Trait Implementations

impl IComparableError<f32> for Mat1x4<f32>[src]

impl IComparableError<f64> for Mat1x4<f64>[src]

impl<T: Clone> Clone for Mat1x4<T> where
    T: Copy + Clone
[src]

impl<T: Copy> Copy for Mat1x4<T> where
    T: Copy + Clone
[src]

impl Default for Mat1x4<f32>[src]

impl Default for Mat1x4<f64>[src]

impl<T: Debug> Debug for Mat1x4<T> where
    T: Copy + Clone
[src]

impl<T> Index<usize> for Mat1x4<T> where
    T: Copy + Clone
[src]

type Output = T

The returned type after indexing.

impl<T> IndexMut<usize> for Mat1x4<T> where
    T: Copy + Clone
[src]

Auto Trait Implementations

impl<T> Send for Mat1x4<T> where
    T: Send

impl<T> Sync for Mat1x4<T> where
    T: Sync

impl<T> Unpin for Mat1x4<T> where
    T: Unpin

impl<T> UnwindSafe for Mat1x4<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Mat1x4<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]