public static Matrix4f createLookAt(Vector3f eye, Vector3f at, Vector3f up) {
    """
	Creates a "look at" matrix for the given eye point.
	
	@param eye The position of the camera
	@param at The point that the camera is looking at
	@param up The "up" vector
	@return A rotational transform that corresponds to a camera looking at the given point
    """
        final Vector3f f = at.sub(eye).normalize();
        final Vector3f s = f.cross(up).normalize();
        final Vector3f u = s.cross(f);
        final Matrix4f mat = new Matrix4f(
                s.getX(), s.getY(), s.getZ(), 0,
                u.getX(), u.getY(), u.getZ(), 0,
                -f.getX(), -f.getY(), -f.getZ(), 0,
                0, 0, 0, 1);
        return mat.translate(eye.negate());
    }
public static Matrix4f createLookAt(Vector3f eye, Vector3f at, Vector3f up) {
        final Vector3f f = at.sub(eye).normalize();
        final Vector3f s = f.cross(up).normalize();
        final Vector3f u = s.cross(f);
        final Matrix4f mat = new Matrix4f(
                s.getX(), s.getY(), s.getZ(), 0,
                u.getX(), u.getY(), u.getZ(), 0,
                -f.getX(), -f.getY(), -f.getZ(), 0,
                0, 0, 0, 1);
        return mat.translate(eye.negate());
    }
public static Matrix4f createLookAt ( Vector3f eye , Vector3f at , Vector3f up ) { final Vector3f f = at . sub ( eye ) . normalize ( ) ; final Vector3f s = f . cross ( up ) . normalize ( ) ; final Vector3f u = s . cross ( f ) ; final Matrix4f mat = new Matrix4f ( s . getX ( ) , s . getY ( ) , s . getZ ( ) , 0 , u . getX ( ) , u . getY ( ) , u . getZ ( ) , 0 , - f . getX ( ) , - f . getY ( ) , - f . getZ ( ) , 0 , 0 , 0 , 0 , 1 ) ; return mat . translate ( eye . negate ( ) ) ; }
Creates a "look at" matrix for the given eye point.

@param eye The position of the camera
@param at The point that the camera is looking at
@param up The "up" vector
@return A rotational transform that corresponds to a camera looking at the given point
Creates a look at matrix for the given eye point .