Contents

translateX(by:yBy:)

Applies the specified translation factors to the receiver’s transformation matrix.

Declaration

func translateX(by deltaX: Double, yBy deltaY: Double)

Parameters

  • deltaX:

    The number of units to move along the x axis.

  • deltaY:

    The number of units to move along the y axis.

Discussion

Subsequent transformations cause coordinates to be shifted by deltaX units along the x axis and by deltaY units along the y axis. Translation factors do not affect NSSize values, which specify a differential between points.

See Also

Accumulating Transformations