Class CameraRay


  • public class CameraRay
    extends Object
    Class that can calcthe ray, the camera is looking to
    Author:
    Darius Dinger
    • Constructor Detail

      • CameraRay

        public CameraRay()
    • Method Detail

      • recalcRay

        public void recalcRay​(javax.vecmath.Matrix4f inverseVMat,
                              javax.vecmath.Matrix4f inversePMat)
        Recalculate the current camera ray
        Parameters:
        inverseVMat - Inverse view matrix of the camera
        inversePMat - Inverse projection matrix of the camera
      • getRay

        public javax.vecmath.Vector3f getRay()
        Returns:
        Current ray, the camera is looking to