FixedPosition

public class FixedPosition implements ImmutablePosition

Inheritors

Properties

Link copied to clipboard
private final Float x

The x coordinate.

Link copied to clipboard
private final Float y

The y coordinate.

Functions

Link copied to clipboard
public Float deltaX(ImmutablePosition position)

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

public Float deltaX(Float x)

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

Link copied to clipboard
public Float deltaY(ImmutablePosition position)

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

public Float deltaY(Float y)

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

Link copied to clipboard
public Boolean equals(Object other)
Link copied to clipboard
public Float getX()

The x coordinate.

Link copied to clipboard
public Float getY()

The y coordinate.

Link copied to clipboard
public Integer hashCode()
Link copied to clipboard
public String toString()