jwo.landserf.process.gps
Class AngleDegrees

java.lang.Object
  extended byjwo.landserf.process.gps.AngleDegrees

public class AngleDegrees
extends Object

Used to represent an angular coordinate in degrees, usually for global lat,lng position.

Version:
2.2, 24th June, 2004.
Author:
Jo Wood, based on the design by Henrik Sorensen (haas@itu.dk).

Constructor Summary
AngleDegrees(double angle)
          Initialises object with a given angle in degrees.
 
Method Summary
 double getAngle()
          Reports his angle in degrees.
 int getDegrees()
          Reports the whole degrees part of this angle.
 double getMinutes()
          Reports the minutes part of this angle.
 AngleRadians toRadians()
          Reports this angle in radians.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AngleDegrees

public AngleDegrees(double angle)
Initialises object with a given angle in degrees. Note that this is an immutable class so cannot change its angular value.

Parameters:
angle - Angle in degrees.
Method Detail

getAngle

public double getAngle()
Reports his angle in degrees.

Returns:
Angle (not rounded or truncated).

getDegrees

public int getDegrees()
Reports the whole degrees part of this angle.

Returns:
The whole number of degrees in this angle (truncated not rounded).

toRadians

public AngleRadians toRadians()
Reports this angle in radians.

Returns:
Angle in radians.

getMinutes

public double getMinutes()
Reports the minutes part of this angle. Can include decimal minutes.

Returns:
The minutes component of this angle.


Copyright Jo Wood, 1996-2005, last modified, 11th March, 2005