drasys.or.geom
Interface GeomI

All Known Subinterfaces:
GeoI, LineSegmentI, LineSegmentI, LineSegmentI, PointI, PointI, PointI, PointI, PolygonI, PolygonI, RangeI, RangeI, RangeI, Rect2I, Rect3I

public interface GeomI

An interface used by all algorithms to abstractly geometric objects.


Method Summary
 CoordinateSystemI coordinateSystem()
          Returns the coordinate system used by the polygon
 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.
 

Method Detail

coordinateSystem

public CoordinateSystemI coordinateSystem()
Returns the coordinate system used by the polygon

getDistanceTo

public double getDistanceTo(PointI point)
Returns the distance to a point.

getDistanceProxyTo

public double getDistanceProxyTo(PointI point)
Returns an easily computable proxy that can be used to compare the distance to a point.

getRange

public RangeI getRange()
Returns a RangeI describing the extent of the object.

getCentroid

public PointI getCentroid()
Returns a PointI describing the centroid of the object

getNearestPointTo

public PointI getNearestPointTo(PointI point)
Returns a PointI describing the point on the boundary closest to 'point'.


Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com