init(scale:)
Creates an affine transformation matrix from scaling a single value.
Declaration
init(scale factor: CGFloat)Parameters
- factor:
The scale factor.
Discussion
The matrix takes the following form:
[ f 0 0 ]
[ 0 f 0 ]
[ 0 0 1 ]Creates an affine transformation matrix from scaling a single value.
init(scale factor: CGFloat)The scale factor.
The matrix takes the following form:
[ f 0 0 ]
[ 0 f 0 ]
[ 0 0 1 ]