drasys.or.geom.rect2
Class Rect2
java.lang.Object
|
+--drasys.or.geom.rect2.Rect2
- Direct Known Subclasses:
- LineSegment, Point, Polygon, Range
- public abstract class Rect2
- extends java.lang.Object
- implements Rect2I
A base class for rect2 objects.
Constructor Summary |
Rect2()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Rect2
public Rect2()
coordinateSystem
public CoordinateSystemI coordinateSystem()
- Returns the 2-D coordinate system object.
getDistanceTo
public double getDistanceTo(PointI point)
- Description copied from interface: GeomI
- Returns the distance to a point.
getDistanceProxyTo
public double getDistanceProxyTo(PointI point)
- Description copied from interface: GeomI
- Returns an easily computable proxy that can be used to compare the distance to a point.
getRange
public RangeI getRange()
- Description copied from interface: GeomI
- Returns a RangeI describing the extent of the object.
getCentroid
public PointI getCentroid()
- Description copied from interface: GeomI
- Returns a PointI describing the centroid of the object
getNearestPointTo
public PointI getNearestPointTo(PointI point)
- Description copied from interface: GeomI
- Returns a PointI describing the point on the boundary closest to 'point'.
Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com