transform(_:)
Applies an affine transform to this shape.
Declaration
func transform(_ transform: CGAffineTransform) -> TransformedShape<Self>Parameters
- transform:
The affine transformation matrix to apply to this shape.
Return Value
A transformed shape, based on its matrix values.
Discussion
Affine transforms present a mathematical approach to applying combinations of rotation, scaling, translation, and skew to shapes.