| java.lang.Object org.jdesktop.j3dfly.utils.vpbehaviors.ViewUtils
ViewUtils | public class ViewUtils extends Object (Code) | | Utility functions for manipulating the View
author: Paul Byrne version: $Id: ViewUtils.java,v 1.1 2005/04/20 21:05:15 paulby Exp $ |
Method Summary | |
public static double | setViewpoint(TransformGroup tg, Bounds sceneBounds, double fieldOfView, int axis) Set the transform so that everything inside the Bounds is
visible within the view frustum. | public static void | toEuler(Matrix3d matrix, Vector3d euler) |
NEGATIVE_X_AXIS | final public static int NEGATIVE_X_AXIS(Code) | | |
NEGATIVE_Y_AXIS | final public static int NEGATIVE_Y_AXIS(Code) | | |
NEGATIVE_Z_AXIS | final public static int NEGATIVE_Z_AXIS(Code) | | |
POSITIVE_X_AXIS | final public static int POSITIVE_X_AXIS(Code) | | |
POSITIVE_Y_AXIS | final public static int POSITIVE_Y_AXIS(Code) | | |
POSITIVE_Z_AXIS | final public static int POSITIVE_Z_AXIS(Code) | | |
setViewpoint | public static double setViewpoint(TransformGroup tg, Bounds sceneBounds, double fieldOfView, int axis)(Code) | | Set the transform so that everything inside the Bounds is
visible within the view frustum. Return the views distance from
center of the scene after transformation
Parameters: tg - The transform to change Parameters: sceneBounds - The bounds of the scene to fit inside the view frustum Parameters: fieldOfView - The fieldOfView Parameters: axis - The axis along which to view the scene, this must be one ofPOSITIVE_X_AXIS, POSITIVE_Y_AXIS, POSITIVE_Z_AXIS, NEGATIVE_X_AXIS, NEGATIVE_Y_AXIS or NEGATIVE_Z_AXIS The distance the eye is from the center of the scene bounds. |
toEuler | public static void toEuler(Matrix3d matrix, Vector3d euler)(Code) | | Converts the Matrix into Euler angles (roll, pitch, yaw )
|
|
|