transform(_:)
Applies the receiver’s transform to the specified size and returns the results.
Declaration
func transform(_ aSize: NSSize) -> NSSizeParameters
- aSize:
The size data to which you want to apply the matrix.
Return Value
The resulting size after applying the receiver’s transformations.
Discussion
This method applies the current rotation and scaling factors to aSize; it does not apply translation factors. You can think of this method as transforming a vector whose origin is (0, 0) and whose end point is specified by the value in aSize. After the rotation and scaling factors are applied, this method effectively returns the end point of the new vector.
This method is useful for transforming delta or distance values when you need to take scaling and rotation factors into account.