edu.jhu.ece.iacl.jist.structures.geom
Class CollisionDetection.Triangle

java.lang.Object
  extended by edu.jhu.ece.iacl.jist.structures.geom.CollisionDetection.Triangle
Enclosing class:
CollisionDetection

public static class CollisionDetection.Triangle
extends java.lang.Object

The Class Triangle.


Constructor Summary
CollisionDetection.Triangle(Point3d p1, Point3d p2, Point3d p3)
          Instantiates a new triangle.
 
Method Summary
static BoundingBox getBounds(java.util.ArrayList<CollisionDetection.Triangle> tris)
          Gets the bounds.
static java.util.ArrayList<CollisionDetection.Triangle> getInBounds(java.util.ArrayList<CollisionDetection.Triangle> tris, BoundingBox box)
          Gets the in bounds.
 boolean inBounds(BoundingBox box)
          In bounds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollisionDetection.Triangle

public CollisionDetection.Triangle(Point3d p1,
                                   Point3d p2,
                                   Point3d p3)
Instantiates a new triangle.

Parameters:
p1 - the p1
p2 - the p2
p3 - the p3
Method Detail

inBounds

public boolean inBounds(BoundingBox box)
In bounds.

Parameters:
box - the box
Returns:
true, if successful

getInBounds

public static java.util.ArrayList<CollisionDetection.Triangle> getInBounds(java.util.ArrayList<CollisionDetection.Triangle> tris,
                                                                           BoundingBox box)
Gets the in bounds.

Parameters:
tris - the tris
box - the box
Returns:
the in bounds

getBounds

public static BoundingBox getBounds(java.util.ArrayList<CollisionDetection.Triangle> tris)
Gets the bounds.

Parameters:
tris - the tris
Returns:
the bounds