|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.tudelft.simulation.language.d2.Angle
public final class Angle
The Angle class presents a number of mathematical utility functions on the angle.
(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl/language
License of use: Lesser
General Public License (LGPL) , no warranty
| Method Summary | |
|---|---|
static double |
angle(Point2D p0,
Point2D p1)
Return the 2-pi normalized angle when making an arc from p0 to p1 |
static double |
normalize2Pi(double angle)
Normalize an angle between 0 and 2*pi |
static double |
normalizePi(double angle)
Normalize an angle between -pi and +pi |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static double normalize2Pi(double angle)
angle - the angle to normalize
public static double normalizePi(double angle)
angle - the angle to normalize
public static double angle(Point2D p0,
Point2D p1)
p0 - first pointp1 - second point
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||