ImmutablePosition

public interface ImmutablePosition

Represents an immutable position.

Inheritors

Functions

Link copied to clipboard
public abstract Float deltaX(ImmutablePosition position)

Calculates the difference between the current x and the target position's x-coordinate.

public abstract Float deltaX(Float x)

Calculates the difference between the current x-coordinate and the target x-coordinate.

Link copied to clipboard
public abstract Float deltaY(ImmutablePosition position)

Calculates the difference between the current y and the target position's y-coordinate.

public abstract Float deltaY(Float y)

Calculates the vertical difference between the current y-coordinate and the target y-coordinate.

Link copied to clipboard
public abstract Float getX()

The x coordinate.

Link copied to clipboard
public abstract Float getY()

The y coordinate.