Struct nalgebra::Iso4
[−]
[src]
pub struct Iso4<N> { pub rotation: Rot4<N>, pub translation: Vec4<N>, }
Four dimensional isometry.
Isometries conserve angles and distances, hence do not allow shearing nor scaling.
Fields
rotation: Rot4<N>
The rotation applicable by this isometry.
translation: Vec4<N>
The translation applicable by this isometry.
Methods
impl<N> Iso4<N>
[src]
fn new_with_rotmat(translation: Vec4<N>, rotation: Rot4<N>) -> Iso4<N>
Creates a new isometry from a rotation matrix and a vector.
Trait Implementations
impl<N: Copy> Copy for Iso4<N>
[src]
impl<N: Debug> Debug for Iso4<N>
[src]
impl<N: Clone> Clone for Iso4<N>
[src]
fn clone(&self) -> Iso4<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 Iso4<N>
[src]
impl<N: Encodable> Encodable for Iso4<N>
[src]
impl<N: PartialEq> PartialEq for Iso4<N>
[src]
fn eq(&self, __arg_0: &Iso4<N>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Iso4<N>) -> bool
This method tests for !=
.
impl<N: Eq> Eq for Iso4<N>
[src]
impl<N> Dim for Iso4<N>
[src]
impl<N: BaseFloat> One for Iso4<N>
[src]
impl<N: BaseFloat> AbsoluteRotate<Vec4<N>> for Iso4<N>
[src]
fn absolute_rotate(&self, v: &Vec4<N>) -> Vec4<N>
This is the same as: Read more
impl<N: ApproxEq<N>> ApproxEq<N> for Iso4<N>
[src]
fn approx_epsilon(_: Option<Iso4<N>>) -> N
Default epsilon for approximation.
fn approx_ulps(_: Option<Iso4<N>>) -> u32
Default ULPs for approximation.
fn approx_eq_eps(&self, other: &Iso4<N>, epsilon: &N) -> bool
Tests approximate equality using a custom epsilon.
fn approx_eq_ulps(&self, other: &Iso4<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: BaseNum> ToHomogeneous<Mat5<N>> for Iso4<N>
[src]
fn to_homogeneous(&self) -> Mat5<N>
Gets the homogeneous coordinates form of this object.
impl<N: BaseNum + Neg<Output=N>> Inv for Iso4<N>
[src]
fn inv_mut(&mut self) -> bool
In-place version of inverse
.
fn inv(&self) -> Option<Iso4<N>>
Returns the inverse of m
.
impl<N: BaseNum> Transform<Pnt4<N>> for Iso4<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: BaseFloat> Transformation<Iso4<N>> for Iso4<N>
[src]
fn transformation(&self) -> Iso4<N>
Gets the transformation of self
.
fn inv_transformation(&self) -> Iso4<N>
Gets the inverse transformation of self
.
fn append_transformation_mut(&mut self, t: &Iso4<N>)
Appends a transformation to this object.
fn append_transformation(&self, t: &Iso4<N>) -> Iso4<N>
Appends the transformation amount
to a copy of t
.
fn prepend_transformation_mut(&mut self, t: &Iso4<N>)
Prepends a transformation to this object.
fn prepend_transformation(&self, t: &Iso4<N>) -> Iso4<N>
Prepends the transformation amount
to a copy of t
.
fn set_transformation(&mut self, t: Iso4<N>)
Sets the transformation of self
.
impl<N: BaseNum> Rotate<Vec4<N>> for Iso4<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: BaseFloat> Translation<Vec4<N>> for Iso4<N>
[src]
fn translation(&self) -> Vec4<N>
Gets the translation associated with this object.
fn inv_translation(&self) -> Vec4<N>
Gets the inverse translation associated with this object.
fn append_translation_mut(&mut self, t: &Vec4<N>)
Appends a translation to this object.
fn append_translation(&self, t: &Vec4<N>) -> Iso4<N>
Appends the translation amount
to a copy of t
.
fn prepend_translation_mut(&mut self, t: &Vec4<N>)
Prepends a translation to this object.
fn prepend_translation(&self, t: &Vec4<N>) -> Iso4<N>
Prepends the translation amount
to a copy of t
.
fn set_translation(&mut self, t: Vec4<N>)
Sets the translation.
impl<N: Copy + Add<N, Output=N> + Sub<N, Output=N>> Translate<Pnt4<N>> for Iso4<N>
[src]
fn translate(&self, v: &Pnt4<N>) -> Pnt4<N>
Apply a translation to an object.
fn inv_translate(&self, v: &Pnt4<N>) -> Pnt4<N>
Apply an inverse translation to an object.
impl<N: BaseFloat> Mul<Iso4<N>> for Iso4<N>
[src]
type Output = Iso4<N>
The resulting type after applying the *
operator
fn mul(self, right: Iso4<N>) -> Iso4<N>
The method for the *
operator