|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BoundingVolume
Bounding-volume interface for 3D scenes.
Solid| Method Summary | |
|---|---|
double |
intersection(double[] P0,
double[] P1)
Ray vs. bounding-volume intersection test with quantitative result. |
boolean |
intersectsCell(double[] o,
double[] size)
Rectangular box (AABB) vs. bounding-volume intersection test. |
boolean |
intersectsRay(double[] P0,
double[] P1)
Ray vs. bounding-volume intersection test. |
boolean |
isInside(double[] point)
Point vs. bounding-volume test ("inside-test"). |
| Method Detail |
|---|
boolean intersectsRay(double[] P0,
double[] P1)
P0 - Ray origin (double[3] or double[4]).P1 - Direction vector of the ray (double[3] or double[4]).
intersection(double[], double[])
double intersection(double[] P0,
double[] P1)
P0 - Ray origin (double[3] or double[4]).P1 - Direction vector of the ray (double[3] or double[4]).
>= 0.0 if the ray intersects the bounding-volume,
number < 0.0 if no intersection exists.intersectsRay(double[], double[])
boolean intersectsCell(double[] o,
double[] size)
o - Coordinate of minimal cell-vertex (double[3]).size - Box size (double[3]).
isInside(double[])boolean isInside(double[] point)
point - Coordinates of the 3D point (double[3] or
double[4]).
intersectsCell(double[], double[])
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||