Class ScreenPointToRay

java.lang.Object
cz.fidentis.analyst.canvas.ScreenPointToRay

@Deprecated(forRemoval=true) public class ScreenPointToRay extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
The implementation is not correct and was replaced by the SceneRenderer.castRayThroughPixel(int, int, Camera) method, which is mased on the gluUnProject reverse mapping of the projection and modelview OpenGL matrices.
Utility class for converting screen position to ray
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Ray
    convert(int screenX, int screenY, int width, int height, Camera camera)
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ScreenPointToRay

      public ScreenPointToRay()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • convert

      public static Ray convert(int screenX, int screenY, int width, int height, Camera camera)
      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 coordinate
      screenY - screen y coordinate
      width - view port width
      height - view port height
      camera - camera
      Returns:
      ray