Struct nalgebra::na::Mat5
pub struct Mat5<N> { m11: N, m21: N, m31: N, m41: N, m51: N, m12: N, m22: N, m32: N, m42: N, m52: N, m13: N, m23: N, m33: N, m43: N, m53: N, m14: N, m24: N, m34: N, m44: N, m54: N, m15: N, m25: N, m35: N, m45: N, m55: N, }
Square matrix of dimension 5.
Fields
m11 | |
m21 | |
m31 | |
m41 | |
m51 | |
m12 | |
m22 | |
m32 | |
m42 | |
m52 | |
m13 | |
m23 | |
m33 | |
m43 | |
m53 | |
m14 | |
m24 | |
m34 | |
m44 | |
m54 | |
m15 | |
m25 | |
m35 | |
m45 | |
m55 |
Methods
impl<N> Mat5<N>
fn new(m11: N, m12: N, m13: N, m14: N, m15: N, m21: N, m22: N, m23: N, m24: N, m25: N, m31: N, m32: N, m33: N, m34: N, m35: N, m41: N, m42: N, m43: N, m44: N, m45: N, m51: N, m52: N, m53: N, m54: N, m55: N) -> Mat5<N>
impl<N: Clone> Mat5<N>
unsafe fn at_fast(&self, (tuple arg NYI): (uint, uint)) -> N
unsafe fn set_fast(&mut self, (tuple arg NYI): (uint, uint), val: N)
Trait Implementations
impl<N: Eq> Eq for Mat5<N>
Automatically derived.
impl<__E: Encoder, N: Encodable<__E>> Encodable<__E> for Mat5<N>
Automatically derived.
fn encode(&self, __arg_0: &mut __E)
impl<__D: Decoder, N: Decodable<__D>> Decodable<__D> for Mat5<N>
Automatically derived.
fn decode(__arg_0: &mut __D) -> Mat5<N>
impl<N: Clone> Clone for Mat5<N>
Automatically derived.
fn clone(&self) -> Mat5<N>
impl<N: DeepClone> DeepClone for Mat5<N>
Automatically derived.
fn deep_clone(&self) -> Mat5<N>
impl<N: IterBytes> IterBytes for Mat5<N>
Automatically derived.
fn iter_bytes(&self, __arg_0: bool, __arg_1: Cb) -> bool
impl<N: Rand> Rand for Mat5<N>
Automatically derived.
impl<N: Zero> Zero for Mat5<N>
Automatically derived.
fn zero() -> Mat5<N>
fn is_zero(&self) -> bool
impl<N: ToStr> ToStr for Mat5<N>
Automatically derived.
fn to_str(&self) -> ~str
impl<N, Rhs: Mat5MulRhs<N, Res>, Res> Mul<Rhs, Res> for Mat5<N>
fn mul(&self, other: &Rhs) -> Res
impl<N, Rhs: Mat5DivRhs<N, Res>, Res> Div<Rhs, Res> for Mat5<N>
fn div(&self, other: &Rhs) -> Res
impl<N, Rhs: Mat5AddRhs<N, Res>, Res> Add<Rhs, Res> for Mat5<N>
fn add(&self, other: &Rhs) -> Res
impl<N, Rhs: Mat5SubRhs<N, Res>, Res> Sub<Rhs, Res> for Mat5<N>
fn sub(&self, other: &Rhs) -> Res
impl<T: Mat5Cast<N>, N> Cast<T> for Mat5<N>
fn from(t: T) -> Mat5<N>
Converts an element of type T
to an element of type Self
.
impl<Nin: Clone, Nout: Clone + Cast<Nin>> Mat5Cast<Nout> for Mat5<Nin>
impl<N: Signed> Absolute<Mat5<N>> for Mat5<N>
fn abs(m: &Mat5<N>) -> Mat5<N>
Computes some absolute value of this object. Typically, this will make all component of a matrix or vector positive.
impl<N: Clone + One + Zero> One for Mat5<N>
fn one() -> Mat5<N>
impl<N: Clone + Add<N, N>> Mat5AddRhs<N, Mat5<N>> for Mat5<N>
impl<N: Clone + Sub<N, N>> Mat5SubRhs<N, Mat5<N>> for Mat5<N>
impl<N> Iterable<N> for Mat5<N>
fn iter<'l>(&'l self) -> Items<'l, N>
Gets a vector-like read-only iterator.
impl<N> IterableMut<N> for Mat5<N>
fn mut_iter<'l>(&'l mut self) -> MutItems<'l, N>
Gets a vector-like read-write iterator.
impl<N> Dim for Mat5<N>
impl<N: Clone> Indexable<(uint, uint), N> for Mat5<N>
fn at(&self, (tuple arg NYI): (uint, uint)) -> N
Reads the i
-th element of self
.
fn set(&mut self, (tuple arg NYI): (uint, uint), val: N)
Writes to the i
-th element of self
.
fn swap(&mut self, (tuple arg NYI): (uint, uint), (tuple arg NYI): (uint, uint))
Swaps the i
-th element of self
with its j
-th element.
unsafe fn unsafe_at(&self, (tuple arg NYI): (uint, uint)) -> N
Reads the i
-th element of self
.
i
is not checked.
unsafe fn unsafe_set(&mut self, (tuple arg NYI): (uint, uint), val: N)
Writes to the i
-th element of self
.
i
is not checked.
impl<N: Clone + Num> Mat5MulRhs<N, Mat5<N>> for Mat5<N>
impl<N: Clone + Num> Vec5MulRhs<N, Vec5<N>> for Mat5<N>
impl<N: Clone + Eq + Num> Inv for Mat5<N>
fn inv_cpy(m: &Mat5<N>) -> Option<Mat5<N>>
Returns the inverse of self
.
fn inv(&mut self) -> bool
In-place version of inverse
.
impl<N: Clone> Transpose for Mat5<N>
fn transpose_cpy(m: &Mat5<N>) -> Mat5<N>
Computes the transpose of a matrix.
fn transpose(&mut self)
In-place version of transposed
.
impl<N: ApproxEq<N>> ApproxEq<N> for Mat5<N>
fn approx_epsilon(_: Option<Mat5<N>>) -> N
Default epsilon for approximation.
fn approx_eq(a: &Mat5<N>, b: &Mat5<N>) -> bool
Tests approximate equality.
fn approx_eq_eps(a: &Mat5<N>, b: &Mat5<N>, epsilon: &N) -> bool
Tests approximate equality using a custom epsilon.
impl<N: Clone + Zero> Row<Vec5<N>> for Mat5<N>
fn nrows(&self) -> uint
The number of column of self
.
fn set_row(&mut self, row: uint, v: Vec5<N>)
Writes the i
-th row of self
.
fn row(&self, row: uint) -> Vec5<N>
Reads the i
-th row of self
.
impl<N: Clone + Zero> Col<Vec5<N>> for Mat5<N>
fn ncols(&self) -> uint
The number of column of this matrix or vector.
fn set_col(&mut self, col: uint, v: Vec5<N>)
Writes the i
-th column of self
.
fn col(&self, col: uint) -> Vec5<N>
Reads the i
-th column of self
.