org.wamblee.gps.geometry
Class ReferenceCoordinateSystem

java.lang.Object
  extended by org.wamblee.gps.geometry.ReferenceCoordinateSystem
All Implemented Interfaces:
java.io.Serializable, CoordinateSystem

public class ReferenceCoordinateSystem
extends java.lang.Object
implements CoordinateSystem

Reference coordinate system which is the basis for defining metrics. This is a Cartesian coordinate system.

Author:
Erik Brakkee
See Also:
Serialized Form

Constructor Summary
ReferenceCoordinateSystem()
          Constructs the coordinate system.
 
Method Summary
static double distance(Point aP1, Point aP2)
          Computes the distance between two points in arbitrary coordinate systems.
 Coordinates toReferenceSystem(Coordinates aCoordinates)
          Conversion to a reference coordinate system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferenceCoordinateSystem

public ReferenceCoordinateSystem()
Constructs the coordinate system.

Method Detail

toReferenceSystem

public Coordinates toReferenceSystem(Coordinates aCoordinates)
Description copied from interface: CoordinateSystem
Conversion to a reference coordinate system.

Specified by:
toReferenceSystem in interface CoordinateSystem
Parameters:
aCoordinates - Coordinates.
Returns:
Coordinates in the reference system.

distance

public static double distance(Point aP1,
                              Point aP2)
Computes the distance between two points in arbitrary coordinate systems.

Parameters:
aP1 - First point.
aP2 - Second point.
Returns:
Distance.


Copyright © 2010. All Rights Reserved.