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.


Constructor Index

 o Angle()
 

Method Index

 o degreesToRadians(double)
convert an angle in degrees to radians
 o isBetween(double, double, double)
is angle b between a & c? (in radians)
 o isBetweenDegrees(double, double, double)
is angle b between a & c? (in degrees)
 o normalize(double)
force angle to range from 0 to 2pi (in radians)
 o normalizeDegrees(double)
force angle to range from 0 to 360 (in degrees)
 o radiansToDegrees(double)
convert an angle in radians to degrees

Constructor Detail

 o Angle
public Angle()

Method Detail

 o degreesToRadians
public static double degreesToRadians(double degrees)
          convert an angle in degrees to radians
 o radiansToDegrees
public static double radiansToDegrees(double radians)
          convert an angle in radians to degrees
 o isBetween
public static boolean isBetween(double a,
                                double b,
                                double c)
          is angle b between a & c? (in radians)
 o isBetweenDegrees
public static boolean isBetweenDegrees(double a,
                                       double b,
                                       double c)
          is angle b between a & c? (in degrees)
 o normalize
public static double normalize(double radians)
          force angle to range from 0 to 2pi (in radians)
 o normalizeDegrees
public static double normalizeDegrees(double degrees)
          force angle to range from 0 to 360 (in degrees)

All Packages  Class Hierarchy  This Package  Previous  Next  Index