de.jreality.scene.pick
Interface PickSystem
- All Known Implementing Classes:
- AABBPickSystem
public interface PickSystem
- Author:
- brinkman
TODO document PickSystem
setSceneRoot
void setSceneRoot(SceneGraphComponent root)
computePick
List<PickResult> computePick(double[] from,
double[] to)
- The parameters need to be homogenious coordinates.
- Parameters:
from
- foot point of ray in world coordinatesto
- end point of ray in world coordinates (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
- Returns:
- list of PickResults sorted by distance from foot point