#[repr(C)]pub struct Matrix {
    pub xx: c_double,
    pub yx: c_double,
    pub xy: c_double,
    pub yy: c_double,
    pub x0: c_double,
    pub y0: c_double,
}Fields§
§xx: c_double§yx: c_double§xy: c_double§yy: c_double§x0: c_double§y0: c_doubleImplementations§
source§impl Matrix
 
impl Matrix
pub fn identity() -> Self
pub fn new(xx: f64, yx: f64, xy: f64, yy: f64, x0: f64, y0: f64) -> Self
pub fn multiply(left: &Matrix, right: &Matrix) -> Matrix
pub fn translate(&mut self, tx: f64, ty: f64)
pub fn scale(&mut self, sx: f64, sy: f64)
pub fn rotate(&mut self, angle: f64)
pub fn invert(&mut self)
pub fn try_invert(&self) -> Result<Matrix, Error>
pub fn transform_distance(&self, _dx: f64, _dy: f64) -> (f64, f64)
pub fn transform_point(&self, _x: f64, _y: f64) -> (f64, f64)
Trait Implementations§
source§impl<'a> FromValue<'a> for &'a Matrix
 
impl<'a> FromValue<'a> for &'a Matrix
§type Checker = GenericValueTypeOrNoneChecker<&'a Matrix>
 
type Checker = GenericValueTypeOrNoneChecker<&'a Matrix>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
 
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a 
Value. Read moresource§impl<'a> FromValue<'a> for Matrix
 
impl<'a> FromValue<'a> for Matrix
§type Checker = GenericValueTypeOrNoneChecker<Matrix>
 
type Checker = GenericValueTypeOrNoneChecker<Matrix>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
 
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a 
Value. Read moresource§impl PartialEq<Matrix> for Matrix
 
impl PartialEq<Matrix> for Matrix
source§impl StaticType for Matrix
 
impl StaticType for Matrix
source§fn static_type() -> Type
 
fn static_type() -> Type
Returns the type identifier of 
Self.source§impl ToValueOptional for Matrix
 
impl ToValueOptional for Matrix
impl Copy for Matrix
impl StructuralPartialEq for Matrix
impl ValueTypeOptional for Matrix
Auto Trait Implementations§
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> StaticTypeExt for Twhere
    T: StaticType,
 
impl<T> StaticTypeExt for Twhere T: StaticType,
source§fn ensure_type()
 
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToClosureReturnValue for Twhere
    T: ToValue,
 
impl<T> ToClosureReturnValue for Twhere T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
source§impl<T> ToSendValue for Twhere
    T: Send + ToValue + ?Sized,
 
impl<T> ToSendValue for Twhere T: Send + ToValue + ?Sized,
source§fn to_send_value(&self) -> SendValue
 
fn to_send_value(&self) -> SendValue
Returns a 
SendValue clone of self.