[][src]Struct core_graphics::geometry::CGAffineTransform

#[repr(C)]pub struct CGAffineTransform {
    pub a: CGFloat,
    pub b: CGFloat,
    pub c: CGFloat,
    pub d: CGFloat,
    pub tx: CGFloat,
    pub ty: CGFloat,
}

Fields

a: CGFloatb: CGFloatc: CGFloatd: CGFloattx: CGFloatty: CGFloat

Implementations

impl CGAffineTransform[src]

pub fn new(
    a: CGFloat,
    b: CGFloat,
    c: CGFloat,
    d: CGFloat,
    tx: CGFloat,
    ty: CGFloat
) -> CGAffineTransform
[src]

pub fn make_translation(tx: CGFloat, ty: CGFloat) -> CGAffineTransform[src]

pub fn make_rotation(angle: CGFloat) -> CGAffineTransform[src]

pub fn make_scale(sx: CGFloat, sy: CGFloat) -> CGAffineTransform[src]

pub fn translate(&self, tx: CGFloat, ty: CGFloat) -> CGAffineTransform[src]

pub fn rotate(&self, angle: CGFloat) -> CGAffineTransform[src]

pub fn scale(&self, sx: CGFloat, sy: CGFloat) -> CGAffineTransform[src]

pub fn invert(&self) -> CGAffineTransform[src]

pub fn concat(&self, t: CGAffineTransform) -> CGAffineTransform[src]

Trait Implementations

impl Clone for CGAffineTransform[src]

impl Copy for CGAffineTransform[src]

impl Debug for CGAffineTransform[src]

impl Default for CGAffineTransform[src]

impl PartialEq<CGAffineTransform> for CGAffineTransform[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.