Package cz.fidentis.analyst.canvas
Class ScreenPointToRay
java.lang.Object
cz.fidentis.analyst.canvas.ScreenPointToRay
Deprecated, for removal: This API element is subject to removal in a future version.
Utility class for converting screen position to ray
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic Ray
Deprecated, for removal: This API element is subject to removal in a future version.converts screen point to ray by first calculating position on near plane, constructing a coordinate frame and calculates direction from camera position to point on near plane within this frame
-
Constructor Details
-
ScreenPointToRay
public ScreenPointToRay()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
convert
Deprecated, for removal: This API element is subject to removal in a future version.converts screen point to ray by first calculating position on near plane, constructing a coordinate frame and calculates direction from camera position to point on near plane within this frame- Parameters:
screenX
- screen x coordinatescreenY
- screen y coordinatewidth
- view port widthheight
- view port heightcamera
- camera- Returns:
- ray
-
SceneRenderer.castRayThroughPixel(int, int, Camera)
method, which is mased on thegluUnProject
reverse mapping of the projection and modelview OpenGL matrices.