#[repr(C)]
pub struct CATransform3D {
Show 16 fields pub m11: CGFloat, pub m12: CGFloat, pub m13: CGFloat, pub m14: CGFloat, pub m21: CGFloat, pub m22: CGFloat, pub m23: CGFloat, pub m24: CGFloat, pub m31: CGFloat, pub m32: CGFloat, pub m33: CGFloat, pub m34: CGFloat, pub m41: CGFloat, pub m42: CGFloat, pub m43: CGFloat, pub m44: CGFloat,
}

Fields§

§m11: CGFloat§m12: CGFloat§m13: CGFloat§m14: CGFloat§m21: CGFloat§m22: CGFloat§m23: CGFloat§m24: CGFloat§m31: CGFloat§m32: CGFloat§m33: CGFloat§m34: CGFloat§m41: CGFloat§m42: CGFloat§m43: CGFloat§m44: CGFloat

Implementations§

source§

impl CATransform3D

source

pub const IDENTITY: CATransform3D = _

source

pub fn from_translation(tx: CGFloat, ty: CGFloat, tz: CGFloat) -> CATransform3D

source

pub fn from_scale(sx: CGFloat, sy: CGFloat, sz: CGFloat) -> CATransform3D

source

pub fn from_rotation( angle: CGFloat, x: CGFloat, y: CGFloat, z: CGFloat ) -> CATransform3D

source

pub fn affine(affine_transform: CGAffineTransform) -> CATransform3D

source

pub fn is_identity(&self) -> bool

source

pub fn translate(&self, tx: CGFloat, ty: CGFloat, tz: CGFloat) -> CATransform3D

source

pub fn scale(&self, sx: CGFloat, sy: CGFloat, sz: CGFloat) -> CATransform3D

source

pub fn rotate( &self, angle: CGFloat, x: CGFloat, y: CGFloat, z: CGFloat ) -> CATransform3D

source

pub fn invert(&self) -> CATransform3D

source

pub fn is_affine(&self) -> bool

source

pub fn to_affine(&self) -> CGAffineTransform

Trait Implementations§

source§

impl Clone for CATransform3D

source§

fn clone(&self) -> CATransform3D

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Mul<CATransform3D> for CATransform3D

§

type Output = CATransform3D

The resulting type after applying the * operator.
source§

fn mul(self, other: CATransform3D) -> CATransform3D

Performs the * operation. Read more
source§

impl PartialEq<CATransform3D> for CATransform3D

source§

fn eq(&self, other: &CATransform3D) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for CATransform3D

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.