DecomposedTransform
struct DecomposedTransform
extension CATransform3D.DecomposedTransform: Interpolatable
Represents a decomposed CATransform3D in which the transform is broken down into its transform attributes (scale, translation, etc.).
-
The translation of the transform.
Declaration
Swift
public var translation: Translation { get set }
-
The scale of the transform.
Declaration
Swift
public var scale: Translation { get set }
-
The rotation of the transform (exposed as a quaternion).
Declaration
Swift
public var rotation: CGQuaternion { get set }
-
The skew of the transform.
Declaration
Swift
public var skew: Skew { get set }
-
The perspective of the transform.
Declaration
Swift
public var perspective: Perspective { get set }
-
Designated initializer.
Note
You’ll probably want to useCATransform3D.decomposed()
instead.Declaration
Swift
public init(_ decomposed: matrix_double4x4.DecomposedTransform)
-
Merges all the properties of the the decomposed transform into a
CATransform3D
.Declaration
Swift
public func recomposed() -> CATransform3D
-
Declaration
Swift
public func lerp(to: `Self`, fraction: Double) -> CATransform3D.DecomposedTransform