Struct vecmat::map::Affine2 [−][src]
pub struct Affine2<T> where
T: Copy + Num + Float + Signed, { pub linear: Mat2<T>, pub shift: Vec2<T>, }
Fields
linear: Mat2<T>
shift: Vec2<T>
Methods
impl<T> Affine2<T> where
T: Copy + Num + Float + Signed,
[src]
impl<T> Affine2<T> where
T: Copy + Num + Float + Signed,
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn from(m: Mat2<T>, v: Vec2<T>) -> Self
[src]
pub fn from(m: Mat2<T>, v: Vec2<T>) -> Self
pub fn inverse(&self) -> Self
[src]
pub fn inverse(&self) -> Self
pub fn map_vec(&self, v: Vec2<T>) -> Vec2<T>
[src]
pub fn map_vec(&self, v: Vec2<T>) -> Vec2<T>
pub fn map_mat(&self, m: Mat2<T>) -> Mat2<T>
[src]
pub fn map_mat(&self, m: Mat2<T>) -> Mat2<T>
pub fn chain(&self, a: &Affine2<T>) -> Self
[src]
pub fn chain(&self, a: &Affine2<T>) -> Self
Trait Implementations
impl<T: Clone> Clone for Affine2<T> where
T: Copy + Num + Float + Signed,
[src]
impl<T: Clone> Clone for Affine2<T> where
T: Copy + Num + Float + Signed,
fn clone(&self) -> Affine2<T>
[src]
fn clone(&self) -> Affine2<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T: Debug> Debug for Affine2<T> where
T: Copy + Num + Float + Signed,
[src]
impl<T: Debug> Debug for Affine2<T> where
T: Copy + Num + Float + Signed,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: PartialEq> PartialEq for Affine2<T> where
T: Copy + Num + Float + Signed,
[src]
impl<T: PartialEq> PartialEq for Affine2<T> where
T: Copy + Num + Float + Signed,