NSAffineTransform
A graphics coordinate transformation.
Declaration
class NSAffineTransformOverview
In Swift, this object bridges to AffineTransform; use NSAffineTransform when you need reference semantics or other Foundation-specific behavior.
A transformation specifies how points in one coordinate system are transformed to points in another coordinate system. An affine transformation is a special type of transformation that preserves parallel lines in a path but does not necessarily preserve lengths or angles. Scaling, rotation, and translation are the most commonly used manipulations supported by affine transforms, but shearing is also possible.
Methods for applying affine transformations to the current graphics context and a method for applying an affine transformation to an NSBezierPath object are described in NSAffineTransform Additions Reference in the Application Kit.
Topics
Creating an Affine Transform
Accumulating Transformations
rotate(byDegrees:)rotate(byRadians:)scale(by:)scaleX(by:yBy:)translateX(by:yBy:)append(_:)prepend(_:)invert()