Struct euclid::matrix2d::Matrix2D
[−]
[src]
pub struct Matrix2D<T> { // some fields omitted }
Methods
impl<T: Add<T, Output=T> + Copy + Clone + Mul<T, Output=T> + One + PartialOrd + Sub<T, Output=T> + Zero> Matrix2D<T>
fn new(m11: T, m12: T, m21: T, m22: T, m31: T, m32: T) -> Matrix2D<T>
fn mul(&self, m: &Matrix2D<T>) -> Matrix2D<T>
fn translate(&self, x: T, y: T) -> Matrix2D<T>
fn scale(&self, x: T, y: T) -> Matrix2D<T>
fn identity() -> Matrix2D<T>
fn to_array(&self) -> [T; 6]
fn transform_point(&self, point: &Point2D<T>) -> Point2D<T>
Returns the given point transformed by this matrix.
fn transform_rect(&self, rect: &Rect<T>) -> Rect<T>
Returns a rectangle that encompasses the result of transforming the given rectangle by this matrix.