Struct nalgebra::Rot4
[−]
[src]
pub struct Rot4<N> { // some fields omitted }
Four dimensional rotation matrix.
Methods
impl<N> Rot4<N>
[src]
Trait Implementations
impl<N: Copy> Copy for Rot4<N>
[src]
impl<N: Hash> Hash for Rot4<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 Rot4<N>
[src]
impl<N: Clone> Clone for Rot4<N>
[src]
fn clone(&self) -> Rot4<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: Decodable> Decodable for Rot4<N>
[src]
impl<N: Encodable> Encodable for Rot4<N>
[src]
impl<N: PartialEq> PartialEq for Rot4<N>
[src]
fn eq(&self, __arg_0: &Rot4<N>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Rot4<N>) -> bool
This method tests for !=
.
impl<N: Eq> Eq for Rot4<N>
[src]
impl<N: BaseFloat> AbsoluteRotate<Vec4<N>> for Rot4<N>
[src]
fn absolute_rotate(&self, v: &Vec4<N>) -> Vec4<N>
This is the same as: Read more
impl<N: BaseFloat + Clone> Rotation<Vec4<N>> for Rot4<N>
[src]
fn rotation(&self) -> Vec4<N>
Gets the rotation associated with self
.
fn inv_rotation(&self) -> Vec4<N>
Gets the inverse rotation associated with self
.
fn append_rotation_mut(&mut self, _: &Vec4<N>)
Appends a rotation to this object.
fn append_rotation(&self, _: &Vec4<N>) -> Rot4<N>
Appends the rotation amount
to a copy of t
.
fn prepend_rotation_mut(&mut self, _: &Vec4<N>)
Prepends a rotation to this object.
fn prepend_rotation(&self, _: &Vec4<N>) -> Rot4<N>
Prepends the rotation amount
to a copy of t
.
fn set_rotation(&mut self, _: Vec4<N>)
Sets the rotation of self
.
impl<N: BaseNum> Rotate<Vec4<N>> for Rot4<N>
[src]
fn rotate(&self, v: &Vec4<N>) -> Vec4<N>
Applies a rotation to v
.
fn inv_rotate(&self, v: &Vec4<N>) -> Vec4<N>
Applies an inverse rotation to v
.
impl<N: BaseNum> Rotate<Pnt4<N>> for Rot4<N>
[src]
fn rotate(&self, p: &Pnt4<N>) -> Pnt4<N>
Applies a rotation to v
.
fn inv_rotate(&self, p: &Pnt4<N>) -> Pnt4<N>
Applies an inverse rotation to v
.
impl<N: BaseNum> Transform<Vec4<N>> for Rot4<N>
[src]
fn transform(&self, v: &Vec4<N>) -> Vec4<N>
Applies a transformation to v
.
fn inv_transform(&self, v: &Vec4<N>) -> Vec4<N>
Applies an inverse transformation to v
.
impl<N: BaseNum> Transform<Pnt4<N>> for Rot4<N>
[src]
fn transform(&self, p: &Pnt4<N>) -> Pnt4<N>
Applies a transformation to v
.
fn inv_transform(&self, p: &Pnt4<N>) -> Pnt4<N>
Applies an inverse transformation to v
.
impl<N> Dim for Rot4<N>
[src]
impl<N: BaseNum> Mul<Rot4<N>> for Rot4<N>
[src]
type Output = Rot4<N>
The resulting type after applying the *
operator
fn mul(self, right: Rot4<N>) -> Rot4<N>
The method for the *
operator
impl<N: BaseNum> Mul<Vec4<N>> for Rot4<N>
[src]
type Output = Vec4<N>
The resulting type after applying the *
operator
fn mul(self, right: Vec4<N>) -> Vec4<N>
The method for the *
operator
impl<N: BaseNum> Mul<Pnt4<N>> for Rot4<N>
[src]
type Output = Pnt4<N>
The resulting type after applying the *
operator
fn mul(self, right: Pnt4<N>) -> Pnt4<N>
The method for the *
operator
impl<N: BaseNum> One for Rot4<N>
[src]
impl<N: BaseNum> Eye for Rot4<N>
[src]
fn new_identity(dim: usize) -> Rot4<N>
Return the identity matrix of specified dimension
impl<N: Zero + BaseNum + Cast<f64> + BaseFloat> RotationMatrix<N, Vec4<N>, Vec4<N>> for Rot4<N>
[src]
type Output = Rot4<N>
The output rotation matrix type.
fn to_rot_mat(&self) -> Rot4<N>
Gets the rotation matrix represented by self
.
impl<N: Copy + Zero> Col<Vec4<N>> for Rot4<N>
[src]
fn ncols(&self) -> usize
The number of column of this matrix or vector.
fn col(&self, i: usize) -> Vec4<N>
Reads the i
-th column of self
.
fn set_col(&mut self, i: usize, col: Vec4<N>)
Writes the i
-th column of self
.
impl<N: Copy + Zero> Row<Vec4<N>> for Rot4<N>
[src]
fn nrows(&self) -> usize
The number of column of self
.
fn row(&self, i: usize) -> Vec4<N>
Reads the i
-th row of self
.
fn set_row(&mut self, i: usize, row: Vec4<N>)
Writes the i
-th row of self
.
impl<N> Index<(usize, usize)> for Rot4<N>
[src]
type Output = N
The returned type after indexing
fn index(&self, i: (usize, usize)) -> &N
The method for the indexing (Foo[Bar]
) operation
impl<N: Absolute<N>> Absolute<Mat4<N>> for Rot4<N>
[src]
fn abs(m: &Rot4<N>) -> Mat4<N>
Computes some absolute value of this object. Typically, this will make all component of a matrix or vector positive. Read more
impl<N: BaseNum> ToHomogeneous<Mat5<N>> for Rot4<N>
[src]
fn to_homogeneous(&self) -> Mat5<N>
Gets the homogeneous coordinates form of this object.
impl<N: Copy> Inv for Rot4<N>
[src]
fn inv_mut(&mut self) -> bool
In-place version of inverse
.
fn inv(&self) -> Option<Rot4<N>>
Returns the inverse of m
.
impl<N: Copy> Transpose for Rot4<N>
[src]
fn transpose(&self) -> Rot4<N>
Computes the transpose of a matrix.
fn transpose_mut(&mut self)
In-place version of transposed
.
impl<N: ApproxEq<N>> ApproxEq<N> for Rot4<N>
[src]
fn approx_epsilon(_: Option<Rot4<N>>) -> N
Default epsilon for approximation.
fn approx_ulps(_: Option<Rot4<N>>) -> u32
Default ULPs for approximation.
fn approx_eq(&self, other: &Rot4<N>) -> bool
Tests approximate equality.
fn approx_eq_eps(&self, other: &Rot4<N>, epsilon: &N) -> bool
Tests approximate equality using a custom epsilon.
fn approx_eq_ulps(&self, other: &Rot4<N>, ulps: u32) -> bool
Tests approximate equality using units in the last place (ULPs)