Struct nalgebra::Matrix3
[−]
[src]
pub struct Matrix3<N> { pub m11: N, pub m21: N, pub m31: N, pub m12: N, pub m22: N, pub m32: N, pub m13: N, pub m23: N, pub m33: N, }
Square matrix of dimension 3.
Fields
m11: N
m21: N
m31: N
m12: N
m22: N
m32: N
m13: N
m23: N
m33: N
Methods
impl<N> Matrix3<N>
[src]
impl<N: Copy> Matrix3<N>
[src]
unsafe fn at_fast(&self, (i, j): (usize, usize)) -> N
unsafe fn set_fast(&mut self, (i, j): (usize, usize), val: N)
Trait Implementations
impl<N: Eq> Eq for Matrix3<N>
[src]
impl<N: PartialEq> PartialEq for Matrix3<N>
[src]
fn eq(&self, __arg_0: &Matrix3<N>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Matrix3<N>) -> bool
This method tests for !=
.
impl<N: Encodable> Encodable for Matrix3<N>
[src]
impl<N: Decodable> Decodable for Matrix3<N>
[src]
impl<N: Clone> Clone for Matrix3<N>
[src]
fn clone(&self) -> Matrix3<N>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<N: Hash> Hash for Matrix3<N>
[src]
fn hash<__HN: Hasher>(&self, __arg_0: &mut __HN)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl<N: Debug> Debug for Matrix3<N>
[src]
impl<N: Copy> Copy for Matrix3<N>
[src]
impl<N: Zero + One> Eye for Matrix3<N>
[src]
fn new_identity(dimension: usize) -> Matrix3<N>
Return the identity matrix of specified dimension
impl<N: Copy> Repeat<N> for Matrix3<N>
[src]
impl<N> AsRef<[[N; 3]; 3]> for Matrix3<N>
[src]
impl<N> AsMut<[[N; 3]; 3]> for Matrix3<N>
[src]
impl<'a, N> From<&'a [[N; 3]; 3]> for &'a Matrix3<N>
[src]
impl<'a, N> From<&'a mut [[N; 3]; 3]> for &'a mut Matrix3<N>
[src]
impl<'a, N: Clone> From<&'a [[N; 3]; 3]> for Matrix3<N>
[src]
impl<Nin: Copy, Nout: Copy + Cast<Nin>> Cast<Matrix3<Nin>> for Matrix3<Nout>
[src]
impl<N: Add<N, Output=N>> Add<Matrix3<N>> for Matrix3<N>
[src]
type Output = Matrix3<N>
The resulting type after applying the +
operator
fn add(self, right: Matrix3<N>) -> Matrix3<N>
The method for the +
operator
impl<N: AddAssign<N>> AddAssign<Matrix3<N>> for Matrix3<N>
[src]
fn add_assign(&mut self, right: Matrix3<N>)
The method for the +=
operator
impl<N: Sub<N, Output=N>> Sub<Matrix3<N>> for Matrix3<N>
[src]
type Output = Matrix3<N>
The resulting type after applying the -
operator
fn sub(self, right: Matrix3<N>) -> Matrix3<N>
The method for the -
operator
impl<N: SubAssign<N>> SubAssign<Matrix3<N>> for Matrix3<N>
[src]
fn sub_assign(&mut self, right: Matrix3<N>)
The method for the -=
operator
impl<N: Copy + Add<N, Output=N>> Add<N> for Matrix3<N>
[src]
type Output = Matrix3<N>
The resulting type after applying the +
operator
fn add(self, right: N) -> Matrix3<N>
The method for the +
operator
impl<N: Copy + AddAssign<N>> AddAssign<N> for Matrix3<N>
[src]
fn add_assign(&mut self, right: N)
The method for the +=
operator
impl<N: Copy + Sub<N, Output=N>> Sub<N> for Matrix3<N>
[src]
type Output = Matrix3<N>
The resulting type after applying the -
operator
fn sub(self, right: N) -> Matrix3<N>
The method for the -
operator
impl<N: Copy + SubAssign<N>> SubAssign<N> for Matrix3<N>
[src]
fn sub_assign(&mut self, right: N)
The method for the -=
operator
impl<N: Copy + Mul<N, Output=N>> Mul<N> for Matrix3<N>
[src]
type Output = Matrix3<N>
The resulting type after applying the *
operator
fn mul(self, right: N) -> Matrix3<N>
The method for the *
operator
impl<N: Copy + MulAssign<N>> MulAssign<N> for Matrix3<N>
[src]
fn mul_assign(&mut self, right: N)
The method for the *=
operator
impl<N: Copy + Div<N, Output=N>> Div<N> for Matrix3<N>
[src]
type Output = Matrix3<N>
The resulting type after applying the /
operator
fn div(self, right: N) -> Matrix3<N>
The method for the /
operator
impl<N: Copy + DivAssign<N>> DivAssign<N> for Matrix3<N>
[src]
fn div_assign(&mut self, right: N)
The method for the /=
operator
impl<N: Absolute<N>> Absolute<Matrix3<N>> for Matrix3<N>
[src]
fn abs(m: &Matrix3<N>) -> Matrix3<N>
Computes some absolute value of this object. Typically, this will make all component of a matrix or vector positive. Read more
impl<N: Zero> Zero for Matrix3<N>
[src]
fn zero() -> Matrix3<N>
Returns the additive identity element of Self
, 0
. Read more
fn is_zero(&self) -> bool
Returns true
if self
is equal to the additive identity.
impl<N: Copy + BaseNum> One for Matrix3<N>
[src]
impl<N> Iterable<N> for Matrix3<N>
[src]
impl<N> IterableMut<N> for Matrix3<N>
[src]
impl<N> Dimension for Matrix3<N>
[src]
impl<N> Shape<(usize, usize)> for Matrix3<N>
[src]
impl<N: Copy> Indexable<(usize, usize), N> for Matrix3<N>
[src]
fn swap(&mut self, (i1, j1): (usize, usize), (i2, j2): (usize, usize))
Swaps the i
-th element of self
with its j
-th element.
unsafe fn unsafe_at(&self, (i, j): (usize, usize)) -> N
Reads the i
-th element of self
. Read more
unsafe fn unsafe_set(&mut self, (i, j): (usize, usize), val: N)
Writes to the i
-th element of self
. Read more
impl<N> Index<(usize, usize)> for Matrix3<N>
[src]
type Output = N
The returned type after indexing
fn index(&self, (i, j): (usize, usize)) -> &N
The method for the indexing (Foo[Bar]
) operation
impl<N> IndexMut<(usize, usize)> for Matrix3<N>
[src]
fn index_mut(&mut self, (i, j): (usize, usize)) -> &mut N
The method for the indexing (Foo[Bar]
) operation
impl<N: Copy> Transpose for Matrix3<N>
[src]
fn transpose(&self) -> Matrix3<N>
Computes the transpose of a matrix.
fn transpose_mut(&mut self)
In-place version of transposed
.
impl<N: ApproxEq<N>> ApproxEq<N> for Matrix3<N>
[src]
fn approx_epsilon(_: Option<Matrix3<N>>) -> N
Default epsilon for approximation.
fn approx_ulps(_: Option<Matrix3<N>>) -> u32
Default ULPs for approximation.
fn approx_eq_eps(&self, other: &Matrix3<N>, epsilon: &N) -> bool
Tests approximate equality using a custom epsilon.
fn approx_eq_ulps(&self, other: &Matrix3<N>, ulps: u32) -> bool
Tests approximate equality using units in the last place (ULPs)
fn approx_eq(&self, other: &Self) -> bool
Tests approximate equality.
impl<N: Clone + Copy + Zero> ColumnSlice<DVector3<N>> for Matrix3<N>
[src]
fn column_slice(&self, cid: usize, rstart: usize, rend: usize) -> DVector3<N>
Returns a view to a slice of a column of a matrix.
impl<N: Clone + Copy + Zero> RowSlice<DVector3<N>> for Matrix3<N>
[src]
fn row_slice(&self, rid: usize, cstart: usize, cend: usize) -> DVector3<N>
Returns a view to a slice of a row of a matrix.
impl<N: Copy + Zero> Diagonal<Vector3<N>> for Matrix3<N>
[src]
fn from_diagonal(diagonal: &Vector3<N>) -> Matrix3<N>
Creates a new matrix with the given diagonal.
fn diagonal(&self) -> Vector3<N>
The diagonal of this matrix.
impl<N: BaseNum + Copy> ToHomogeneous<Matrix4<N>> for Matrix3<N>
[src]
fn to_homogeneous(&self) -> Matrix4<N>
Gets the homogeneous coordinates form of this object.
impl<N: BaseNum + Copy> FromHomogeneous<Matrix4<N>> for Matrix3<N>
[src]
fn from(m: &Matrix4<N>) -> Matrix3<N>
Builds an object from its homogeneous coordinate form. Read more
impl<N> EigenQR<N, Vector3<N>> for Matrix3<N> where N: BaseFloat + ApproxEq<N> + Clone
[src]
fn eigen_qr(&self, eps: &N, niter: usize) -> (Matrix3<N>, Vector3<N>)
Computes the eigenvectors and eigenvalues of this matrix.
impl<N: Rand> Rand for Matrix3<N>
[src]
fn rand<R: Rng>(rng: &mut R) -> Matrix3<N>
Generates a random instance of this type using the specified source of randomness. Read more
impl<N: BaseNum + Cast<f64> + Clone> Mean<Vector3<N>> for Matrix3<N>
[src]
impl<N: Display + BaseFloat> Display for Matrix3<N>
[src]
impl<N: BaseNum + Neg<Output=N> + ApproxEq<N>> Inverse for Matrix3<N>
[src]
fn inverse(&self) -> Option<Matrix3<N>>
Returns the inverse of m
.
fn inverse_mut(&mut self) -> bool
In-place version of inverse
.
impl<N: BaseNum> Determinant<N> for Matrix3<N>
[src]
fn determinant(&self) -> N
Returns the determinant of m
.
impl<N: Copy> Row<Vector3<N>> for Matrix3<N>
[src]
fn nrows(&self) -> usize
The number of column of self
.
fn row(&self, i: usize) -> Vector3<N>
Reads the i
-th row of self
.
fn set_row(&mut self, i: usize, r: Vector3<N>)
Writes the i
-th row of self
.
impl<N: Copy> Column<Vector3<N>> for Matrix3<N>
[src]
fn ncols(&self) -> usize
The number of column of this matrix or vector.
fn column(&self, i: usize) -> Vector3<N>
Reads the i
-th column of self
.
fn set_column(&mut self, i: usize, r: Vector3<N>)
Writes the i
-th column of self
.
impl<N: Copy + Mul<N, Output=N> + Add<N, Output=N>> Mul<Matrix3<N>> for Matrix3<N>
[src]
type Output = Matrix3<N>
The resulting type after applying the *
operator
fn mul(self, right: Matrix3<N>) -> Matrix3<N>
The method for the *
operator
impl<N: Copy + Mul<N, Output=N> + Add<N, Output=N>> Mul<Vector3<N>> for Matrix3<N>
[src]
type Output = Vector3<N>
The resulting type after applying the *
operator
fn mul(self, right: Vector3<N>) -> Vector3<N>
The method for the *
operator
impl<N: Copy + Mul<N, Output=N> + Add<N, Output=N>> Mul<Point3<N>> for Matrix3<N>
[src]
type Output = Point3<N>
The resulting type after applying the *
operator
fn mul(self, right: Point3<N>) -> Point3<N>
The method for the *
operator
impl<N: Copy + Mul<N, Output=N> + Add<N, Output=N>> MulAssign<Matrix3<N>> for Matrix3<N>
[src]
fn mul_assign(&mut self, right: Matrix3<N>)
The method for the *=
operator