/** * Rotate the viewfrustum around the y-axis (according to the view direction). roll * * @param delta */ public void rotateY( double delta ) { rotate( right, up, delta ); rotate( backward, up, delta ); lookingAt = new Point3d( eye ); lookingAt.sub( backward ); setCameraParams( eye, lookingAt, up ); }
/** * Rotate the viewfrustum around the x-axis (according to the view direction). pitch * * @param delta */ public void rotateX( double delta ) { rotate( up, right, delta ); rotate( backward, right, delta ); lookingAt = new Point3d( eye ); lookingAt.sub( backward ); setCameraParams( eye, lookingAt, up ); }