set

public abstract Unit set(Float x, Float y)

Sets the x and y coordinates of the mutable position.

Parameters

x

The new x-coordinate.

y

The new y-coordinate.


public abstract Unit set(ImmutablePosition position)

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

Parameters

position

The position from which the coordinates are to be set.