|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--drasys.or.geom.geo.Geo | +--drasys.or.geom.geo.Point
An implementation of a point in the geographic coordinate system.
Constructor Summary | |
Point(double[] coordinates)
The latitude must be in the range -90.0 to +90.0; The longitude will be adjusted to the range -180.0 to +180.0. |
|
Point(double longitude,
double latitude)
The latitude must be in the range -90.0 to +90.0; The longitude will be adjusted to the range -180.0 to +180.0. |
|
Point(PointI point)
The latitude must be in the range -90.0 to +90.0; The longitude will be adjusted to the range -180.0 to +180.0. |
|
Point(VectorI coordinates)
The latitude must be in the range -90.0 to +90.0; The longitude will be adjusted to the range -180.0 to +180.0. |
Method Summary | |
PointI |
centroid()
|
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. |
boolean |
equals(java.lang.Object o)
|
double |
getCoordinate(int i)
Returns individual coordinates by ordinality. |
double |
getDirectionTo(PointI point)
Returns the direction to the argument. |
int |
hashCode()
|
double |
latitude()
Returns the latitude coordinate. |
double |
longitude()
Returns the longitude coordinate. |
PointI |
nearestPointTo(PointI point)
|
RangeI |
range()
|
java.lang.String |
toString()
|
Methods inherited from class drasys.or.geom.geo.Geo |
coordinateSystem,
ellipsoid,
getCentroid,
getDistanceProxyTo,
getDistanceTo,
getNearestPointTo,
getRange |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public Point(double longitude, double latitude)
public Point(PointI point)
public Point(VectorI coordinates)
public Point(double[] coordinates)
Method Detail |
public double latitude()
public double longitude()
public double getCoordinate(int i)
public RangeI range()
public PointI centroid()
public PointI nearestPointTo(PointI point)
public int hashCode()
public boolean equals(java.lang.Object o)
public java.lang.String toString()
public double getDirectionTo(PointI point)
public double directionTo(PointI point)
public double distanceProxyTo(PointI point)
public double distanceTo(PointI point)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |