#[repr(C)]pub struct Transform {
pub m11: f32,
pub m12: f32,
pub m21: f32,
pub m22: f32,
pub m31: f32,
pub m32: f32,
}Fields§
§m11: f32§m12: f32§m21: f32§m22: f32§m31: f32§m32: f32Implementations§
Source§impl Transform
impl Transform
pub fn transform_point(&self, point: Point) -> Point
pub fn transform_vector(&self, vector: Point) -> Point
Source§impl Transform
impl Transform
pub fn determinant(&self) -> f32
pub fn is_invertible(&self) -> bool
pub fn inverse(&self) -> Option<Transform>
Source§impl Transform
impl Transform
pub fn rotation(theta: Angle) -> Self
pub fn then_rotate(&self, theta: Angle) -> Self
pub fn pre_rotate(&self, theta: Angle) -> Self
Source§impl Transform
impl Transform
pub const fn translation(x: f32, y: f32) -> Self
pub fn then_translate(&self, v: Point) -> Self
pub fn pre_translate(&self, v: Point) -> Self
Trait Implementations§
impl Copy for Transform
impl StructuralPartialEq for Transform
Auto Trait Implementations§
impl Freeze for Transform
impl RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnsafeUnpin for Transform
impl UnwindSafe for Transform
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