distanceTo

public final Float distanceTo(ImmutablePosition position)

Calculates the distance between the circle center and the given position.

Return

The calculated distance.

Parameters

position

The position with x and y coordinates.

See also


public final Float distanceTo(Float x, Float y)

Calculates the distance between the circle center and the given coordinates.

Return

The calculated distance.

Parameters

x

The x coordinate of the position.

y

The y coordinate of the position.