edu.jhu.ece.iacl.jist.structures.geom
Class Polygon

java.lang.Object
  extended by edu.jhu.ece.iacl.jist.structures.geom.Polygon

public class Polygon
extends java.lang.Object

Created by IntelliJ IDEA. User: bennett Date: Dec 14, 2005 Time: 11:27:30 AM To change this template use Options | File Templates.


Field Summary
 BndBox bndBox
          The bnd box.
 
Constructor Summary
Polygon(double[][] vertData, double[][] faceData)
          Instantiates a new polygon.
 
Method Summary
 boolean intersect(PT a, PT b)
          Intersect.
 IntersectResult reportIntersect(PT a, PT b)
          Report intersect.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bndBox

public BndBox bndBox
The bnd box.

Constructor Detail

Polygon

public Polygon(double[][] vertData,
               double[][] faceData)
Instantiates a new polygon.

Parameters:
vertData - the vert data
faceData - the face data
Method Detail

intersect

public boolean intersect(PT a,
                         PT b)
Intersect.

Parameters:
a - the a
b - the b
Returns:
true, if successful

reportIntersect

public IntersectResult reportIntersect(PT a,
                                       PT b)
Report intersect.

Parameters:
a - the a
b - the b
Returns:
the intersect result