roboplayer.geometry
Class Angle

java.lang.Object
  |
  +--roboplayer.geometry.Angle

public class Angle
extends java.lang.Object

Helper class for different angle covertion functions.

Version:
1.0
Author:
Krzysztof Langner

Constructor Summary
Angle()
           
 
Method Summary
static double Deg2Rad(double angle)
          This function changes deg to rad
static double Normalize(double angle)
          This function normalizes angle so it is between [-180, 180]
static double Rad2Deg(double angle)
          This function changes deg to rad
 
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

Deg2Rad

public static double Deg2Rad(double angle)
This function changes deg to rad

Parameters:
angle - angle in degrees
Returns:
angle in radians

Rad2Deg

public static double Rad2Deg(double angle)
This function changes deg to rad

Parameters:
angle - angle in radians
Returns:
angle in degrees

Normalize

public static double Normalize(double angle)
This function normalizes angle so it is between [-180, 180]

Parameters:
angle - angle in degrees
Returns:
normalized angle