org.wamblee.gps.geometry
Class Point

java.lang.Object
  extended by org.wamblee.gps.geometry.Point
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
TrackPoint

public class Point
extends java.lang.Object
implements java.io.Serializable

Represents a point in some coordinate system.

Author:
Erik Brakkee
See Also:
Serialized Form

Constructor Summary
Point(Coordinates aCoordinates, CoordinateSystem aSystem)
          Constructs the point.
 
Method Summary
 Coordinates getCoordinates()
          Gets the coordinates in the point's coordinate system.
 CoordinateSystem getCoordinateSystem()
          Gets the coordinate system.
 Coordinates getReferenceCoordinates()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Point

public Point(Coordinates aCoordinates,
             CoordinateSystem aSystem)
Constructs the point.

Parameters:
aCoordinates - Coordinates of the point in its coordinate system.
aSystem - Coordinate system.
Method Detail

getCoordinates

public Coordinates getCoordinates()
Gets the coordinates in the point's coordinate system.

Returns:
Coordinates.

getReferenceCoordinates

public Coordinates getReferenceCoordinates()

getCoordinateSystem

public CoordinateSystem getCoordinateSystem()
Gets the coordinate system.

Returns:
Coordinate system.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010. All Rights Reserved.