Contents

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 ]

See Also

Creating Transforms