[][src]Struct mazth::mat::Mat2x1

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

Fields

_val: [T; 2]

Methods

impl Mat2x1<f32>[src]

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

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

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

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

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

pub fn dot(&self, other: &Mat2x1<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) -> Mat1x2<f32>[src]

impl Mat2x1<f64>[src]

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

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

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

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

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

pub fn dot(&self, other: &Mat2x1<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) -> Mat1x2<f64>[src]

Trait Implementations

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

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

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

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

impl Default for Mat2x1<f32>[src]

impl Default for Mat2x1<f64>[src]

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

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

type Output = T

The returned type after indexing.

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

Auto Trait Implementations

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

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

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

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

impl<T> RefUnwindSafe for Mat2x1<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]