drasys.or.geom
Interface RangeI

All Known Subinterfaces:
RangeI, RangeI, RangeI

public interface RangeI

An interface used by all algorithms to abstractly access coordinates. A range is defined by two boundary points and the boundary points have a different interpretation for each coordinate system.


Method Summary
 PointI boundPoint(PointI point)
          Returns the argument 'point' if it is included in the range.
 CoordinateSystemI coordinateSystem()
          Returns the coordinate system used by the range.
 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.
 boolean includes(PointI point)
          Returns true if the point is inside the range or on the boundary.
 

Method Detail

getMin

public PointI getMin()
Returns the minimum boundary point.

getMax

public PointI getMax()
Returns the maximum boundary point.

coordinateSystem

public CoordinateSystemI coordinateSystem()
Returns the coordinate system used by the range.

includes

public boolean includes(PointI point)
Returns true if the point is inside the range or on the boundary.

boundPoint

public PointI boundPoint(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'.

getExpandedRange

public RangeI getExpandedRange(PointI point)
Returns a range that includes both this range and the argument. If this range already includes the argument, then 'this' is returned.


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