de.javagl.swogl.scene
Class ViewUtils

java.lang.Object
  extended by de.javagl.swogl.scene.ViewUtils

public class ViewUtils
extends java.lang.Object

A class containing utility methods for View operations.


Method Summary
static javax.vecmath.Matrix4f computeProjectionMatrix(float fovYdeg, View view)
          Returns the projection matrix for the given parameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

computeProjectionMatrix

public static javax.vecmath.Matrix4f computeProjectionMatrix(float fovYdeg,
                                                             View view)
Returns the projection matrix for the given parameters

Parameters:
fovYdeg - The FOV (field-of-view) in y-direction, in degrees
view - The view
Returns:
The camera matrix