NSAffineTransform
class NSAffineTransformclass NSAffineTransformimport Foundationclass NSObjectThe root class of most Foundation class hierarchies.
protocol CopyableA type whose values can be implicitly or explicitly copied.
protocol CustomDebugStringConvertibleA type with a customized textual representation suitable for debugging purposes.
protocol CustomStringConvertibleA type with a customized textual representation.
protocol EquatableA type that can be compared for value equality.
protocol Escapableprotocol Hashable : EquatableA type that can be hashed into a Hasher to produce an integer hash value.
protocol NSCodingThe NSCoding protocol declares the two methods that a class must implement so that instances of that class can be encoded and decoded. This capability provides the basis for archiving (where objects and other structures are stored on disk) and distribution (where objects are copied to different address spaces).
protocol NSCopyingThe NSCopying protocol declares a method for providing functional copies of an object. The exact meaning of “copy” can vary from class to class, but a copy must be a functionally independent object with values identical to the original at the time the copy was made.
protocol NSObjectProtocol : AnyObjectThe NSObjectProtocol groups methods that are fundamental to all Foundation objects.
protocol NSSecureCoding : NSCodingConforming to the NSSecureCoding protocol indicates that an object handles encoding and decoding instances of itself in a manner that is robust against object substitution attacks.
override init() Initializes an affine transform matrix to the identity matrix.
required init?(coder aDecoder: NSCoder) convenience init(transform: AffineTransform) Initializes an affine transform matrix using another transform object.
static let supportsSecureCoding: Booloverride var hash: Int { get }var transformStruct: NSAffineTransformStruct { get set }The matrix coefficients stored as the transformation matrix.
func append(_ transform: AffineTransform) Appends the specified matrix.
override func copy() -> Any func copy(with zone: NSZone? = nil) -> Any func encode(with aCoder: NSCoder) func invert() Replaces the matrix with its inverse matrix.
override func isEqual(_ object: Any?) -> Bool func prepend(_ transform: AffineTransform) Prepends the specified matrix.
func rotate(byDegrees angle: CGFloat) Applies a rotation factor (measured in degrees) to the transformation matrix.
func rotate(byRadians angle: CGFloat) Applies a rotation factor (measured in radians) to the transformation matrix.
func scale(by scale: CGFloat) Applies the specified scaling factor along both x and y axes to the transformation matrix.
func scaleX(by scaleX: CGFloat, yBy scaleY: CGFloat) Applies scaling factors to each axis of the transformation matrix.
func transform(_ aSize: CGSize) -> CGSize Applies the transform to the specified size and returns the result.
func transform(_ aPoint: CGPoint) -> CGPoint Applies the transform to the specified point and returns the result.
func translateX(by deltaX: CGFloat, yBy deltaY: CGFloat) Applies the specified translation factors to the transformation matrix.