Struct agb::display::affine::AffineMatrixObject
source · #[repr(C, packed(4))]pub struct AffineMatrixObject { /* private fields */ }
Expand description
An affine matrix that can be used in affine objects
Implementations§
source§impl AffineMatrixObject
impl AffineMatrixObject
sourcepub fn to_affine_matrix(&self) -> AffineMatrix
pub fn to_affine_matrix(&self) -> AffineMatrix
Converts to the affine matrix that is usable in performing efficient calculations.
Trait Implementations§
source§impl Clone for AffineMatrixObject
impl Clone for AffineMatrixObject
source§fn clone(&self) -> AffineMatrixObject
fn clone(&self) -> AffineMatrixObject
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AffineMatrixObject
impl Debug for AffineMatrixObject
source§impl Default for AffineMatrixObject
impl Default for AffineMatrixObject
source§impl From<AffineMatrixObject> for AffineMatrix
impl From<AffineMatrixObject> for AffineMatrix
source§fn from(mat: AffineMatrixObject) -> Self
fn from(mat: AffineMatrixObject) -> Self
Converts to this type from the input type.
source§impl PartialEq for AffineMatrixObject
impl PartialEq for AffineMatrixObject
source§fn eq(&self, other: &AffineMatrixObject) -> bool
fn eq(&self, other: &AffineMatrixObject) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<AffineMatrix> for AffineMatrixObject
impl TryFrom<AffineMatrix> for AffineMatrixObject
§type Error = OverflowError
type Error = OverflowError
The type returned in the event of a conversion error.
source§fn try_from(value: AffineMatrix) -> Result<Self, Self::Error>
fn try_from(value: AffineMatrix) -> Result<Self, Self::Error>
Performs the conversion.
impl Copy for AffineMatrixObject
impl Eq for AffineMatrixObject
impl StructuralEq for AffineMatrixObject
impl StructuralPartialEq for AffineMatrixObject
Auto Trait Implementations§
impl RefUnwindSafe for AffineMatrixObject
impl Send for AffineMatrixObject
impl Sync for AffineMatrixObject
impl Unpin for AffineMatrixObject
impl UnwindSafe for AffineMatrixObject
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more