|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.ece.iacl.jist.structures.geom.CollisionDetection
public class CollisionDetection
The Class CollisionDetection.
Nested Class Summary | |
---|---|
static class |
CollisionDetection.Triangle
The Class Triangle. |
Field Summary | |
---|---|
protected double[] |
bounds
The bounds. |
protected Vector3d |
center
The center. |
protected double[] |
limits
The limits. |
protected Vector3d |
scale
The scale. |
Constructor Summary | |
---|---|
CollisionDetection(EmbeddedSurface mesh,
int rows,
int cols,
int slices,
int maxDepth)
Instantiates a new collision detection. |
Method Summary | |
---|---|
void |
computeBounds(EmbeddedSurface mesh)
Compute bounds. |
void |
dispose()
Dispose. |
void |
init(EmbeddedSurface mesh)
Inits the. |
double |
intersectRayDistance(Point3d start,
Vector3d dir)
Intersect ray distance. |
Point3d |
intersectRayPoint(Point3d start,
Vector3d dir)
Intersect ray point. |
Point3f |
intersectRayPoint(Point3f start,
Vector3f dir)
Intersect ray point. |
double |
intersectSegmentDistance(Point3d start,
Point3d end)
Intersect segment distance. |
Point3d |
intersectSegmentPoint(Point3d start,
Point3d end)
Intersect segment point. |
Point3f |
intersectSegmentPoint(Point3f start,
Point3f end)
Intersect segment point. |
boolean |
isInside(Point3d start)
Checks if is inside. |
Point3d |
projectToSurface(Point3d p)
Project to surface. |
void |
setBounds(double[] limits)
Sets the bounds. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double[] bounds
protected double[] limits
protected Vector3d center
protected Vector3d scale
Constructor Detail |
---|
public CollisionDetection(EmbeddedSurface mesh, int rows, int cols, int slices, int maxDepth)
mesh
- the meshrows
- the rowscols
- the colsslices
- the slicesmaxDepth
- the max depthMethod Detail |
---|
public void dispose()
public void init(EmbeddedSurface mesh)
mesh
- the meshpublic void setBounds(double[] limits)
limits
- the new boundspublic void computeBounds(EmbeddedSurface mesh)
mesh
- the meshpublic Point3d intersectSegmentPoint(Point3d start, Point3d end)
start
- the startend
- the end
public Point3f intersectSegmentPoint(Point3f start, Point3f end)
start
- the startend
- the end
public Point3d intersectRayPoint(Point3d start, Vector3d dir)
start
- the startdir
- the dir
public Point3f intersectRayPoint(Point3f start, Vector3f dir)
start
- the startdir
- the dir
public Point3d projectToSurface(Point3d p)
p
- the p
public double intersectSegmentDistance(Point3d start, Point3d end)
start
- the startend
- the end
public double intersectRayDistance(Point3d start, Vector3d dir)
start
- the startdir
- the dir
public boolean isInside(Point3d start)
start
- the start
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |