public interface PickSystem
Modifier and Type | Method and Description |
---|---|
List<PickResult> |
computePick(double[] from,
double[] to)
The parameters need to be homogeneous coordinates.
|
void |
setSceneRoot(SceneGraphComponent root) |
void setSceneRoot(SceneGraphComponent root)
List<PickResult> computePick(double[] from, double[] to)
from
- foot point of ray in world coordinates (x,y,z,1)to
- 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-negative