pub struct Matrix2D {
pub a: f64,
pub b: f64,
pub c: f64,
pub d: f64,
pub e: f64,
pub f: f64,
}Fields§
§a: f64§b: f64§c: f64§d: f64§e: f64§f: f64Implementations§
Source§impl Matrix2D
impl Matrix2D
pub fn new() -> Matrix2D
pub fn between(from: &Matrix2D, to: &Matrix2D, ratio: f64) -> Matrix2D
pub fn translate_mut(&mut self, x: f64, y: f64)
pub fn translate(self, x: f64, y: f64) -> Matrix2D
pub fn scale_mut(&mut self, x: f64, y: f64)
pub fn scale(self, x: f64, y: f64) -> Matrix2D
pub fn rotate_mut(&mut self, angle: f64)
pub fn rotate(self, angle: f64) -> Matrix2D
pub fn skew_x_mut(&mut self, angle: f64)
pub fn skew_x(self, angle: f64) -> Matrix2D
pub fn skew_y_mut(&mut self, angle: f64)
pub fn skew_y(self, angle: f64) -> Matrix2D
pub fn transform_mut(&mut self, matrix: &Matrix2D)
pub fn transform_values_mut( &mut self, pa: f64, pb: f64, pc: f64, pd: f64, pe: f64, pf: f64, )
pub fn transform(self, matrix: &Matrix2D) -> Matrix2D
pub fn transform_values( self, pa: f64, pb: f64, pc: f64, pd: f64, pe: f64, pf: f64, ) -> Matrix2D
pub fn reset_mut(&mut self)
pub fn set_mut(&mut self, a: f64, b: f64, c: f64, d: f64, e: f64, f: f64)
pub fn det(&self) -> f64
pub fn inverse_mut(&mut self) -> Result<(), Matrix2DTransformError>
pub fn inverse(self) -> Result<Matrix2D, Matrix2DTransformError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Matrix2D
impl RefUnwindSafe for Matrix2D
impl Send for Matrix2D
impl Sync for Matrix2D
impl Unpin for Matrix2D
impl UnwindSafe for Matrix2D
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more