offset

public abstract Unit offset(Float dx, Float dy)

Offsets both the x and y coordinates of the mutable position by the specified amounts.

Parameters

dx

The amount by which to offset the x-coordinate.

dy

The amount by which to offset the y-coordinate.


public abstract Unit offset(ImmutablePosition position)

Offsets both the x and y coordinates of the mutable position based on another position.

Parameters

position

The position from which to offset the coordinates.