y.geom
Class Angle

java.lang.Object
  |
  +--y.geom.Angle

public class Angle
extends Object

This class is an helper for angle calculation.


Constructor Summary
Angle()
           
 
Method Summary
static double addAngle(double a1, double a2)
          Returns the result of the addition of two angles between 0 and 2*Pi.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Angle

public Angle()
Method Detail

addAngle

public static double addAngle(double a1,
                              double a2)
Returns the result of the addition of two angles between 0 and 2*Pi. The result is calculated modulo 2Pi.

Parameters:
a1 - an value in [0,2Pi).
a2 - an value in [0,2Pi).
Returns:
the sum of a1 and a2 modulo 2Pi.

© Copyright 2000-2003,
yWorks GmbH.
All rights reserved.

2003