uk.ac.leeds.ccg.andyt.vector.geometry
Class Envelope2D

java.lang.Object
  extended by uk.ac.leeds.ccg.andyt.vector.geometry.AbstractGeometry2D
      extended by uk.ac.leeds.ccg.andyt.vector.geometry.Envelope2D

public class Envelope2D
extends AbstractGeometry2D


Field Summary
 
Fields inherited from class uk.ac.leeds.ccg.andyt.vector.geometry.AbstractGeometry2D
_DecimalPlacePrecision, _RoundingMode
 
Constructor Summary
Envelope2D(AbstractGeometry2D aAbstractGeometry2D)
           
Envelope2D(AbstractGeometry2D[] aAbstractGeometry2DArray)
           
Envelope2D(java.math.BigDecimal x, java.math.BigDecimal y)
           
Envelope2D(Envelope2D aEnvelope2D)
           
Envelope2D(Point2D aPoint, Point2D bPoint)
           
 
Method Summary
 void applyDecimalPlacePrecision()
           
 Envelope2D getEnvelope2D()
           
 boolean getIntersects(java.math.BigDecimal x, java.math.BigDecimal y)
           
 int getIntersects(LineSegment2D a_LineSegment2D)
           
 boolean getIntersects(Point2D aPoint)
           
 boolean intersects(Envelope2D aEnvelope2D)
          If aEnvelope2D touches, or overlaps then it intersects.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Envelope2D

public Envelope2D(Envelope2D aEnvelope2D)

Envelope2D

public Envelope2D(AbstractGeometry2D aAbstractGeometry2D)

Envelope2D

public Envelope2D(Point2D aPoint,
                  Point2D bPoint)

Envelope2D

public Envelope2D(java.math.BigDecimal x,
                  java.math.BigDecimal y)

Envelope2D

public Envelope2D(AbstractGeometry2D[] aAbstractGeometry2DArray)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class AbstractGeometry2D

intersects

public boolean intersects(Envelope2D aEnvelope2D)
If aEnvelope2D touches, or overlaps then it intersects.


getIntersects

public int getIntersects(LineSegment2D a_LineSegment2D)
Parameters:
a_LineSegment2D -
Returns:
0 if no, 1 if yes, 2 if maybe.

getIntersects

public boolean getIntersects(Point2D aPoint)

getIntersects

public boolean getIntersects(java.math.BigDecimal x,
                             java.math.BigDecimal y)

getEnvelope2D

public Envelope2D getEnvelope2D()
Specified by:
getEnvelope2D in class AbstractGeometry2D

applyDecimalPlacePrecision

public void applyDecimalPlacePrecision()
Specified by:
applyDecimalPlacePrecision in class AbstractGeometry2D