angleTo

public final Double angleTo(ImmutablePosition position)

Calculates the angle formed from the given position and the circle center.

Return

A double value in the range from 0 to 2PI radians clockwise.

Parameters

position

The position with x and y coordinates.

See also


public final Double angleTo(Float x, Float y)

Calculates the angle formed from the circle center and the given coordinates.

Return

A double value in the range from 0 to 2PI radians clockwise.

Parameters

x

The x coordinate of the position.

y

The y coordinate of the position.