#[repr(transparent)]pub struct Matrix3 { /* private fields */ }
Expand description
GLib type: Boxed type with copy-on-clone semantics.
Implementations§
source§impl Matrix3
impl Matrix3
sourcepub fn as_ptr(&self) -> *mut GeglMatrix3
pub fn as_ptr(&self) -> *mut GeglMatrix3
Return the inner pointer to the underlying C value.
sourcepub unsafe fn from_glib_ptr_borrow(ptr: &*mut GeglMatrix3) -> &Self
pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GeglMatrix3) -> &Self
Borrows the underlying C value.
sourcepub unsafe fn from_glib_ptr_borrow_mut(ptr: &mut *mut GeglMatrix3) -> &mut Self
pub unsafe fn from_glib_ptr_borrow_mut(ptr: &mut *mut GeglMatrix3) -> &mut Self
Borrows the underlying C value mutably.
source§impl Matrix3
impl Matrix3
sourcepub fn determinant(&self) -> f64
pub fn determinant(&self) -> f64
Returns the determinant for the matrix.
sourcepub fn is_affine(&self) -> bool
pub fn is_affine(&self) -> bool
Check if a matrix only does an affine transformation.
Returns TRUE if the matrix only does an affine transformation.
sourcepub fn is_identity(&self) -> bool
pub fn is_identity(&self) -> bool
Check if a matrix is the identity matrix.
Returns TRUE if the matrix is the identity matrix.
sourcepub fn is_scale(&self) -> bool
pub fn is_scale(&self) -> bool
Check if a matrix only does scaling.
Returns TRUE if the matrix only does scaling.
sourcepub fn is_translate(&self) -> bool
pub fn is_translate(&self) -> bool
Check if a matrix only does translation.
Returns TRUE if the matrix only does trasnlation.
sourcepub fn parse_string(&mut self, string: &str)
pub fn parse_string(&mut self, string: &str)
Parse a transofmation matrix from a string.
string
a string describing the matrix (right now a small subset of the transform strings allowed by SVG)
sourcepub fn round_error(&mut self)
pub fn round_error(&mut self)
Rounds numerical errors in self
to the nearest integer.