Struct cocoa::quartzcore::CATransform3D
source · #[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
impl CATransform3D
pub const IDENTITY: CATransform3D = _
pub fn from_translation(tx: CGFloat, ty: CGFloat, tz: CGFloat) -> CATransform3D
pub fn from_scale(sx: CGFloat, sy: CGFloat, sz: CGFloat) -> CATransform3D
pub fn from_rotation( angle: CGFloat, x: CGFloat, y: CGFloat, z: CGFloat ) -> CATransform3D
pub fn affine(affine_transform: CGAffineTransform) -> CATransform3D
pub fn is_identity(&self) -> bool
pub fn translate(&self, tx: CGFloat, ty: CGFloat, tz: CGFloat) -> CATransform3D
pub fn scale(&self, sx: CGFloat, sy: CGFloat, sz: CGFloat) -> CATransform3D
pub fn rotate( &self, angle: CGFloat, x: CGFloat, y: CGFloat, z: CGFloat ) -> CATransform3D
pub fn invert(&self) -> CATransform3D
pub fn is_affine(&self) -> bool
pub fn to_affine(&self) -> CGAffineTransform
Trait Implementations§
source§impl Clone for CATransform3D
impl Clone for CATransform3D
source§fn clone(&self) -> CATransform3D
fn clone(&self) -> CATransform3D
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Mul<CATransform3D> for CATransform3D
impl Mul<CATransform3D> for CATransform3D
§type Output = CATransform3D
type Output = CATransform3D
The resulting type after applying the
*
operator.source§fn mul(self, other: CATransform3D) -> CATransform3D
fn mul(self, other: CATransform3D) -> CATransform3D
Performs the
*
operation. Read moresource§impl PartialEq<CATransform3D> for CATransform3D
impl PartialEq<CATransform3D> for CATransform3D
source§fn eq(&self, other: &CATransform3D) -> bool
fn eq(&self, other: &CATransform3D) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CATransform3D
Auto Trait Implementations§
impl RefUnwindSafe for CATransform3D
impl Send for CATransform3D
impl Sync for CATransform3D
impl Unpin for CATransform3D
impl UnwindSafe for CATransform3D
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more