|
MorphAL 0.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.ign.cogit.alpage.morphal.geometry.AngleUtil
public class AngleUtil
Geometric methods to compute angles.
Constructor Summary | |
---|---|
AngleUtil()
|
Method Summary | |
---|---|
static double |
angle(Point point,
Point point2,
int unit,
int interval,
boolean accuracy)
Compute the angle between 2 Point s (between 0 and PI or between O and PI/2)
comparatively to the X axis. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AngleUtil()
Method Detail |
---|
public static double angle(Point point, Point point2, int unit, int interval, boolean accuracy)
Point
s (between 0 and PI or between O and PI/2)
comparatively to the X axis.
point
- first point of the anglepoint2
- point to processunit
- unit in degree if 0, grade if 2interval
- inteval [ 0 ; PI [ if 0, [ 0 ; PI/2 [ if 1,
otherwise the interval [ 0 ; PI/2 [ is the default choiceaccuracy
- true to keep two numbers after the dot, false to keep all numbers
|
MorphAL 0.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |