|
|||||||||
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.Range
An implementation of a range in the geographic coordinate system. This range implementation is a scaler object and not a container, it maintains private copies of the boundary points.
Constructor Summary | |
Range(double west,
double latitude1,
double east,
double latitude2)
|
|
Range(PointI point1,
PointI point2)
|
|
Range(RangeI range)
|
Method Summary | |
PointI |
bound(PointI point)
Returns the argument 'point' if it is included in the range. |
PointI |
boundPoint(PointI point)
Returns the argument 'point' if it is included in the range. |
PointI |
centroid()
Returns the centroid center point of the range. |
double |
distanceProxyTo(PointI point)
Returns the distance proxy from the range boundary to a point. |
double |
distanceTo(PointI point)
Returns the distance from the range boundary to a point. |
double |
east()
Returns the longitude of the east boundary for the range. |
boolean |
equals(java.lang.Object o)
|
RangeI |
getExpandedRange(PointI point)
Returns a range that includes both this range and the argument. |
PointI |
getMax()
Returns the maximum boundary point. |
PointI |
getMin()
Returns the minimum boundary point. |
int |
hashCode()
|
boolean |
includes(PointI point)
Returns true if the point is inside the range or on the boundary. |
PointI |
nearestPointTo(PointI point)
Returns the point on the boundary that is the least distance to 'point'. |
double |
north()
Returns the latitude of the north boundary for the range. |
PointI |
northeast()
Returns the boundary point that defines the northeast corner of the range. |
RangeI |
range()
|
double |
south()
Returns the latitude of the south boundary for the range. |
PointI |
southwest()
Returns the boundary point that defines the southwest corner of the range. |
java.lang.String |
toString()
|
double |
west()
Returns the longitude of the west boundary for the range. |
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 Range(double west, double latitude1, double east, double latitude2)
public Range(PointI point1, PointI point2)
public Range(RangeI range)
Method Detail |
public PointI boundPoint(PointI point)
public PointI getMin()
public PointI getMax()
public RangeI range()
public PointI centroid()
public double east()
public double west()
public double north()
public double south()
public PointI southwest()
public PointI northeast()
public PointI bound(PointI point)
public PointI nearestPointTo(PointI point)
public double distanceTo(PointI point)
public double distanceProxyTo(PointI point)
public int hashCode()
public boolean equals(java.lang.Object o)
public java.lang.String toString()
public boolean includes(PointI point)
public RangeI getExpandedRange(PointI point)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |