drasys.or.geom.geo
Interface PointI
- All Known Implementing Classes:
- Point
- public interface PointI
- extends GeoI, PointI
An interface to abstractly access a point in the geographic coordinate system.
Method Summary |
double |
directionTo(PointI point)
Returns the direction to the argument. |
double |
distanceProxyTo(PointI point)
Returns an easily computable proxy that can be used to compare the distance from this point to the argument point. |
double |
distanceTo(PointI point)
Returns the great circle distance in the units of the ellipsoid. |
double |
latitude()
Returns the latitude coordinate. |
double |
longitude()
Returns the longitude coordinate. |
longitude
public double longitude()
- Returns the longitude coordinate.
latitude
public double latitude()
- Returns the latitude coordinate.
distanceProxyTo
public double distanceProxyTo(PointI point)
- Returns an easily computable proxy that can be used to compare the distance from this point to the argument point.
- Specified by:
- distanceProxyTo in interface GeoI
distanceTo
public double distanceTo(PointI point)
- Returns the great circle distance in the units of the ellipsoid.
- Specified by:
- distanceTo in interface GeoI
directionTo
public double directionTo(PointI point)
- Returns the direction to the argument.
The return value is in the range -PI to +PI and is measured from north.
If angle is positive if 'point' is clockwise and negative if it is counterclockwise.
Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com