|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.javagl.swogl.PickingUtils
public class PickingUtils
Utility methods for picking
| Method Summary | |
|---|---|
static Ray |
computePickingRay(Camera camera,
View view,
int x,
int y)
Compute a picking Ray from the given screen coordinates
based on the given Camera and View. |
static Ray |
computePickingRay(javax.vecmath.Matrix4f viewMatrix,
javax.vecmath.Matrix4f projectionMatrix,
java.awt.Rectangle viewport,
int x,
int y)
Compute a picking ray given the view matrix, projection matrix, viewport and position. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Ray computePickingRay(Camera camera,
View view,
int x,
int y)
Ray from the given screen coordinates
based on the given Camera and View.
camera - The cameraview - The viewx - The x coordinatey - The y coordinate
public static Ray computePickingRay(javax.vecmath.Matrix4f viewMatrix,
javax.vecmath.Matrix4f projectionMatrix,
java.awt.Rectangle viewport,
int x,
int y)
viewMatrix - The view matrixprojectionMatrix - The projection matrixviewport - The viewportx - The x positiony - The y position
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||