distanceBetween

public final static Float distanceBetween(ImmutablePosition positionA, ImmutablePosition positionB)

Calculates the distance between the given positions.

Return

The distance between the 2 positions.

Parameters

positionA

The position A.

positionB

The position B


public final static Float distanceBetween(Float xA, Float yA, Float xB, Float yB)

Calculates the distance between the given coordinates.

Return

The distance between the coordinates.

Parameters

xA

The x coordinate of position the A.

yA

The y coordinate of position the A.

xB

The x coordinate of position the B.

yB

The y coordinate of position the B.