org.minetti.astrodevice.common.coordinate
Interface Coordinate

All Superinterfaces:
Comparable<Coordinate>
All Known Implementing Classes:
DecimalCoordinate, RadianCoordinate, SexagesimalCoordinate

public interface Coordinate
extends Comparable<Coordinate>

Immutable object representing a coordinate. This coordinate can be:

Author:
Jean-Philippe MINETTI

Method Summary
 int getAngle()
          Returns the angle part of coordinate.
 int getMinutes()
          Returns the minutes part of coordinate.
 double getRadian()
          Returns the full value of the coordinate in radian.
 double getSeconds()
          Returns the seconds part of coordinate.
 double getValue()
          Returns the full value of the coordinate.
 boolean isHourAngle()
          Returns TRUE if the coordinate is an hour angle and therefore expressed in hours (not in degrees).
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

isHourAngle

boolean isHourAngle()
Returns TRUE if the coordinate is an hour angle and therefore expressed in hours (not in degrees).

Returns:
TRUE if the coordinate is expressed in hours (not in degrees).

getRadian

double getRadian()
Returns the full value of the coordinate in radian.

Returns:
Full value of the coordinate in radian (rad).

getValue

double getValue()
Returns the full value of the coordinate.

Returns:
Full value of the coordinate in hours (h) or degrees (°).

getAngle

int getAngle()
Returns the angle part of coordinate.

Returns:
Angle part of coordinate in hours (h) or degrees (°).

getMinutes

int getMinutes()
Returns the minutes part of coordinate.

Returns:
Minutes part of coordinate (′).

getSeconds

double getSeconds()
Returns the seconds part of coordinate.

Returns:
Seconds part of coordinate (″).


Copyright © 2012 astroDevice. All Rights Reserved.