public class AngleManager
extends java.lang.Object
Constructor and Description |
---|
AngleManager() |
Modifier and Type | Method and Description |
---|---|
static double |
addAngleBasedIn180Graus(double angleInitial,
double angleAdd)
Sum the angleAdd in the angleInitial in the range -180 to 180 degrees
|
static double |
convertAngleFrom180To360Graus(double angle)
Convert angle in the range -180 to 180 degrees to 0 to 360 degrees
|
static double |
convertAngleFrom360To180Graus(double angle)
Convert angle in the range 0 to 360 degrees to -180 to 180 degrees
|
static boolean |
isAngleContainedInArcBasedIn180Graus(double angleIn,
double angleSup,
double angleInf)
Verify if the angleIn is between the angleInf and the angleSup
|
public static boolean isAngleContainedInArcBasedIn180Graus(double angleIn, double angleSup, double angleInf)
angleIn
- range -180 to 180 degreesangleSup
- range -180 to 180 degreesangleInf
- range -180 to 180 degreespublic static double addAngleBasedIn180Graus(double angleInitial, double angleAdd)
angleInitial
- range -180 to 180 degreesangleAdd
- range -180 to 180 degreespublic static double convertAngleFrom180To360Graus(double angle)
angle
- in the range -180 to 180 degreespublic static double convertAngleFrom360To180Graus(double angle)
angle
- in the range 0 to 360 degrees