All Packages Class Hierarchy This Package Previous Next Index
Class com.loki3.util.Angle
java.lang.Object

+com.loki3.util.Angle
 public class Angle
 extends java.lang.Object
Miscelleneous angle utility functions.

Angle()


degreesToRadians(double)
 convert an angle in degrees to radians

isBetween(double, double, double)
 is angle b between a & c? (in radians)

isBetweenDegrees(double, double, double)
 is angle b between a & c? (in degrees)

normalize(double)
 force angle to range from 0 to 2pi (in radians)

normalizeDegrees(double)
 force angle to range from 0 to 360 (in degrees)

radiansToDegrees(double)
 convert an angle in radians to degrees
Anglepublic Angle()
degreesToRadianspublic static double degreesToRadians(double degrees)
convert an angle in degrees to radians
radiansToDegreespublic static double radiansToDegrees(double radians)
convert an angle in radians to degrees
isBetweenpublic static boolean isBetween(double a,
double b,
double c)
is angle b between a & c? (in radians)
isBetweenDegreespublic static boolean isBetweenDegrees(double a,
double b,
double c)
is angle b between a & c? (in degrees)
normalizepublic static double normalize(double radians)
force angle to range from 0 to 2pi (in radians)
normalizeDegreespublic static double normalizeDegrees(double degrees)
force angle to range from 0 to 360 (in degrees)
All Packages Class Hierarchy This Package Previous Next Index