Contents

init(translationByX:byY:)

Creates an affine transformation matrix from translation values.

Declaration

init(translationByX x: CGFloat, byY y: CGFloat)

Parameters

  • x:

    The horizontal translation value.

  • y:

    The vertical translation value.

Discussion

The matrix takes the following form:

[ 1  0  0 ]
[ 0  1  0 ]
[ x  y  1 ]

See Also

Creating Transforms