Struct nalgebra::Iso2
[−]
[src]
pub struct Iso2<N> { pub rotation: Rot2<N>, pub translation: Vec2<N>, }
Two dimensional isometry.
This is the composition of a rotation followed by a translation. Isometries conserve angles and distances, hence do not allow shearing nor scaling.
Fields
rotation | The rotation applicable by this isometry. |
translation | The translation applicable by this isometry. |
Methods
impl<N: BaseFloat> Iso2<N>
fn new(translation: Vec2<N>, rotation: Vec1<N>) -> Iso2<N>
Creates a new isometry from a rotation matrix and a vector.
fn new_with_rotmat(translation: Vec2<N>, rotation: Rot2<N>) -> Iso2<N>
Creates a new isometry from a rotation matrix and a vector.