Struct ux::Matrix[][src]

pub struct Matrix(_);

Implementations

impl Matrix[src]

pub fn init_from_matrix(&mut self, b: &Matrix) -> Option<Matrix>[src]

Initializes the Matrix self with the contents of the Matrix b.

b

the Matrix to copy

Returns

the initialized Matrix

pub fn init_identity(&mut self) -> Option<Matrix>[src]

Initializes self with the identity matrix, i.e.:

  .xx = 1.0, .xy = 0.0, .xz = 0.0, .xw = 0.0
  .yx = 0.0, .yy = 1.0, .yz = 0.0, .yw = 0.0
  .zx = 0.0, .zy = 0.0, .zz = 1.0, .zw = 0.0
  .wx = 0.0, .wy = 0.0, .wz = 0.0, .ww = 1.0

Returns

the initialized Matrix

pub fn alloc() -> Option<Matrix>[src]

Allocates enough memory to hold a Matrix.

Returns

the newly allocated Matrix

Trait Implementations

impl Clone for Matrix[src]

impl Debug for Matrix[src]

impl Eq for Matrix[src]

impl Hash for Matrix[src]

impl Ord for Matrix[src]

impl PartialEq<Matrix> for Matrix[src]

impl PartialOrd<Matrix> for Matrix[src]

impl StaticType for Matrix[src]

impl StructuralEq for Matrix[src]

impl StructuralPartialEq for Matrix[src]

Auto Trait Implementations

impl RefUnwindSafe for Matrix

impl !Send for Matrix

impl !Sync for Matrix

impl Unpin for Matrix

impl UnwindSafe for Matrix

Blanket Implementations

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

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

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

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

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

impl<Fr, To> IntoColor<To> for Fr where
    To: FromColor<Fr>, 
[src]

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: SetValue + Send + ToValue + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

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<V, T> VZip<V> for T where
    V: MultiLane<T>,