quadrantOf

public final static Integer quadrantOf(Double angle, Plane.MaxQuadrants maxQuadrants, Boolean useMiddle)

Gets the quadrant of the given angle.

Return

if maxQuadrants is MaxQuadrants.FOUR, a value in the range 1 to 4; otherwise, a value in the range 1 to 8.

Parameters

angle

The angle (degrees) of the position. Must be positive.

maxQuadrants

The max quadrants in the circle.

useMiddle

Sets true if you want to use the middle of angle quadrant.

Throws

If the angle is negative.


public final static Integer quadrantOf(Double angle, Plane.MaxQuadrants maxQuadrants)

Gets the quadrant of the given angle.

Return

if maxQuadrants is MaxQuadrants.FOUR, a value in the range 1 to 4; otherwise, a value in the range 1 to 8.

Parameters

angle

The angle (degrees) of the position. Must be positive.

maxQuadrants

The max quadrants in the circle.

Throws

If the angle is negative.


@IntRange(from = 1, to = 4)
public final static Integer quadrantOf(Double angle, Boolean useMiddle)

Gets the quadrant of the given angle.

Return

A value in the range 1 to 4.

Parameters

angle

The degree of the position. Must be in range 0 to 360.

useMiddle

Sets true if you want to use the middle of angle quadrant.

Throws

If the angle is negative.


@IntRange(from = 1, to = 4)
public final static Integer quadrantOf(Double angle)

Gets the quadrant of the given angle.

Return

A value in the range 1 to 4.

Parameters

angle

The degree of the position. Must be in range 0 to 360.

Throws

If the angle is negative.