public class AABBPickSystem extends Object implements PickSystem
Constructor and Description |
---|
AABBPickSystem() |
Modifier and Type | Method and Description |
---|---|
List<PickResult> |
computePick(double[] f,
double[] t)
The parameters need to be homogeneous coordinates.
|
static void |
filterList(HitFilter hf,
double[] from,
double[] to,
List<PickResult> list) |
static void |
getFrustumInterval(double[] from,
double[] to,
Viewer viewer) |
void |
setSceneRoot(SceneGraphComponent root) |
public void setSceneRoot(SceneGraphComponent root)
setSceneRoot
in interface PickSystem
public List<PickResult> computePick(double[] f, double[] t)
PickSystem
computePick
in interface PickSystem
f
- foot point of ray in world coordinates (x,y,z,1)t
- end point of ray in world coordinates (x,y,z,1) (can be at infinity)
Valid pick points are of the form p = a*from+b*to where a*b >= 0
That is, the affine coordinate (b/a) of p on the line with basis (from,to) is non-negativepublic static void getFrustumInterval(double[] from, double[] to, Viewer viewer)
public static void filterList(HitFilter hf, double[] from, double[] to, List<PickResult> list)