pub struct Matrix { /* private fields */ }Implementations§
Source§impl Matrix
impl Matrix
pub const fn identity() -> Self
pub const fn from_i32( _m00: i32, _m01: i32, _m02: i32, _m10: i32, _m11: i32, _m12: i32, _m20: i32, _m21: i32, _m22: i32, ) -> Self
Sourcepub fn get_type(&mut self) -> TypeMask
pub fn get_type(&mut self) -> TypeMask
Returns a bit field describing the transformations the matrix may perform.
The bit field is computed conservatively, so it may include false positives. For example, when Perspectiveis set, all other bits are set.
Returns Identity, or combinations of: Translate, Scale, Affine, Perspective.
Trait Implementations§
impl StructuralPartialEq for Matrix
Auto Trait Implementations§
impl Freeze for Matrix
impl RefUnwindSafe for Matrix
impl Send for Matrix
impl Sync for Matrix
impl Unpin for Matrix
impl UnwindSafe for Matrix
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