#[repr(C)]pub struct Matrix3x2 {
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: f32
Implementations§
Source§impl Matrix3x2
impl Matrix3x2
pub const fn identity() -> Self
pub const fn translation(x: f32, y: f32) -> Self
pub fn rotation(angle: f32) -> Self
pub fn rotation_around(angle: f32, center: Vector2) -> Self
pub fn scale(scale_x: f32, scale_y: f32) -> Self
pub fn scale_around(scale_x: f32, scale_y: f32, center: Vector2) -> Self
pub fn skew(angle_x: f32, angle_y: f32) -> Self
pub fn skew_around(angle_x: f32, angle_y: f32, center: Vector2) -> Self
Trait Implementations§
impl Copy for Matrix3x2
impl StructuralPartialEq for Matrix3x2
Auto Trait Implementations§
impl Freeze for Matrix3x2
impl RefUnwindSafe for Matrix3x2
impl Send for Matrix3x2
impl Sync for Matrix3x2
impl Unpin for Matrix3x2
impl UnwindSafe for Matrix3x2
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