init(scaleByX:byY:)
Creates an affine transformation matrix from scaling values.
Declaration
init(scaleByX x: CGFloat, byY y: CGFloat)Parameters
- x:
The horizontal scale factor.
- y:
The vertical scale factor.
Discussion
The matrix takes the following form:
[ x 0 0 ]
[ 0 y 0 ]
[ 0 0 1 ]