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()
           
 
Method Summary
 CoordinateSystemI coordinateSystem()
          Returns the 2-D coordinate system object.
 PointI getCentroid()
          Returns a PointI describing the centroid of the object
 double getDistanceProxyTo(PointI point)
          Returns an easily computable proxy that can be used to compare the distance to a point.
 double getDistanceTo(PointI point)
          Returns the distance to a point.
 PointI getNearestPointTo(PointI point)
          Returns a PointI describing the point on the boundary closest to 'point'.
 RangeI getRange()
          Returns a RangeI describing the extent of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rect2

public Rect2()
Method Detail

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