MorphAL 0.1

fr.ign.cogit.alpage.morphal.geometry
Class AngleUtil

java.lang.Object
  extended by fr.ign.cogit.alpage.morphal.geometry.AngleUtil

public class AngleUtil
extends java.lang.Object

Geometric methods to compute angles.

Version:
0.1 (2011-01-09)
Author:
Eric Grosso - IGN / Laboratoire COGIT

Constructor Summary
AngleUtil()
           
 
Method Summary
static double angle(Point point, Point point2, int unit, int interval, boolean accuracy)
          Compute the angle between 2 Points (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

AngleUtil

public AngleUtil()
Method Detail

angle

public static double angle(Point point,
                           Point point2,
                           int unit,
                           int interval,
                           boolean accuracy)
Compute the angle between 2 Points (between 0 and PI or between O and PI/2) comparatively to the X axis.

Parameters:
point - first point of the angle
point2 - point to process
unit - unit in degree if 0, grade if 2
interval - inteval [ 0 ; PI [ if 0, [ 0 ; PI/2 [ if 1, otherwise the interval [ 0 ; PI/2 [ is the default choice
accuracy - true to keep two numbers after the dot, false to keep all numbers
Returns:
the computed angle

MorphAL 0.1