drasys.or.geom.rect2
Interface RangeI

All Known Implementing Classes:
Range

public interface RangeI
extends Rect2I, RangeI

An interface to abstractly access a range in the 2D rectangular coordinate system.


Method Summary
 PointI bound(PointI point)
          Returns the argument 'point' if it is included in the range.
 PointI lowerLeft()
          Returns the lower left boundary corner point: (minX,minY).
 PointI lowerRight()
          Returns the lower right boundary corner point: (minX,maxY).
 PointI max()
          Returns the max boundary corner point: (maxX,maxY).
 double maxX()
           
 double maxY()
           
 PointI min()
          Returns the min boundary corner point: (minX,minY).
 double minX()
           
 double minY()
           
 PointI upperLeft()
          Returns the upper left boundary corner point: (minX,maxY).
 PointI upperRight()
          Returns the upper right boundary corner point: (maxX,maxY).
 
Methods inherited from interface drasys.or.geom.rect2.Rect2I
centroid, distanceProxyTo, distanceTo, nearestPointTo, range
 
Methods inherited from interface drasys.or.geom.RangeI
boundPoint, coordinateSystem, getExpandedRange, getMax, getMin, includes
 
Methods inherited from interface drasys.or.geom.GeomI
getCentroid, getDistanceProxyTo, getDistanceTo, getNearestPointTo, getRange
 

Method Detail

min

public PointI min()
Returns the min boundary corner point: (minX,minY).

max

public PointI max()
Returns the max boundary corner point: (maxX,maxY).

lowerLeft

public PointI lowerLeft()
Returns the lower left boundary corner point: (minX,minY).

upperRight

public PointI upperRight()
Returns the upper right boundary corner point: (maxX,maxY).

upperLeft

public PointI upperLeft()
Returns the upper left boundary corner point: (minX,maxY).

lowerRight

public PointI lowerRight()
Returns the lower right boundary corner point: (minX,maxY).

minX

public double minX()

minY

public double minY()

maxX

public double maxX()

maxY

public double maxY()

bound

public PointI bound(PointI point)
Returns the argument 'point' if it is included in the range. Otherwise; returns the point on the boundary that is closest to 'point'.


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