Package de.coreengine.util
Class CameraRay
- java.lang.Object
-
- de.coreengine.util.CameraRay
-
public class CameraRay extends Object
Class that can calcthe ray, the camera is looking to- Author:
- Darius Dinger
-
-
Constructor Summary
Constructors Constructor Description CameraRay()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.vecmath.Vector3f
getRay()
void
recalcRay(javax.vecmath.Matrix4f inverseVMat, javax.vecmath.Matrix4f inversePMat)
Recalculate the current camera ray
-
-
-
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 camerainversePMat
- Inverse projection matrix of the camera
-
getRay
public javax.vecmath.Vector3f getRay()
- Returns:
- Current ray, the camera is looking to
-
-