|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--drasys.or.geom.rect3.Rect3 | +--drasys.or.geom.rect3.Range
An implementation of a range in the 3D rectangular coordinate system. This range implementation is a scaler object and not a container, it maintains private copies of the boundary points.
Constructor Summary | |
Range(double x1,
double y1,
double z1,
double x2,
double y2,
double z2)
|
|
Range(PointI point1,
PointI point2)
|
|
Range(RangeI range)
|
Method Summary | |
PointI |
bound(PointI point)
Returns the argument 'point' if it is included in the range. |
PointI |
boundPoint(PointI point)
Returns the argument 'point' if it is included in the range. |
PointI |
centroid()
|
double |
distanceProxyTo(PointI point)
Returns the distance proxy from the range boundary to a point. |
double |
distanceTo(PointI point)
Returns the distance from the range boundary to a point. |
boolean |
equals(java.lang.Object o)
|
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. |
int |
hashCode()
|
boolean |
includes(PointI point)
Returns true if the point is inside the range or on the boundary. |
PointI |
max()
Returns the max boundary corner point. |
double |
maxX()
|
double |
maxY()
|
double |
maxZ()
|
PointI |
min()
Returns the min boundary corner point. |
double |
minX()
|
double |
minY()
|
double |
minZ()
|
PointI |
nearestPointTo(PointI point)
Returns the point on the boundary that is the least distance to 'point'. |
RangeI |
range()
|
java.lang.String |
toString()
|
Methods inherited from class drasys.or.geom.rect3.Rect3 |
coordinateSystem,
getCentroid,
getDistanceProxyTo,
getDistanceTo,
getNearestPointTo,
getRange |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public Range(double x1, double y1, double z1, double x2, double y2, double z2)
public Range(PointI point1, PointI point2)
public Range(RangeI range)
Method Detail |
public RangeI range()
public PointI centroid()
public PointI min()
public PointI max()
public double minX()
public double minY()
public double minZ()
public double maxX()
public double maxY()
public double maxZ()
public PointI boundPoint(PointI point)
public PointI getMin()
public PointI getMax()
public int hashCode()
public boolean equals(java.lang.Object o)
public java.lang.String toString()
public PointI bound(PointI point)
public PointI nearestPointTo(PointI point)
public double distanceTo(PointI point)
public double distanceProxyTo(PointI point)
public boolean includes(PointI point)
public RangeI getExpandedRange(PointI point)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |