Jeospace API

org.jeospace.coordinate
Class OrientationUtil

java.lang.Object
  extended byorg.jeospace.coordinate.OrientationUtil

public abstract class OrientationUtil
extends java.lang.Object

An abstract class containing utility routines for generating VRML/X3D browser compatible axis angle representations of rotations/orientations for application specific conditions.

Version:
$Revision: 1.1.1.1 $
Author:
Rex Melton
See Also:
Attitude, Cartesian, Quaternion

Constructor Summary
OrientationUtil()
           
 
Method Summary
static void getOrientation(Attitude attitude, float[] orientation)
          Return the axis angle representation that cooresponds to the argument Attitude object
static void getOrientation(Quaternion quat, float[] orientation)
          Return the axis angle representation that cooresponds to the argument Quaternion object
static void getPlaneOfTheHorizonOrientation(Cartesian c, float[] orientation)
          Return the orientation of the plane of the horizon (based on the DefaultConvention) for the argument Cartesian coordinate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrientationUtil

public OrientationUtil()
Method Detail

getPlaneOfTheHorizonOrientation

public static void getPlaneOfTheHorizonOrientation(Cartesian c,
                                                   float[] orientation)
Return the orientation of the plane of the horizon (based on the DefaultConvention) for the argument Cartesian coordinate

Parameters:
c - the Cartesian coordinate at which to calculate the orientation of the plane of the horizon
orientation - the float array to initialize with the axis angle orientation

getOrientation

public static void getOrientation(Attitude attitude,
                                  float[] orientation)
Return the axis angle representation that cooresponds to the argument Attitude object

Parameters:
attitude - the Attitude object to convert
orientation - the float array to initialize with the axis angle orientation

getOrientation

public static void getOrientation(Quaternion quat,
                                  float[] orientation)
Return the axis angle representation that cooresponds to the argument Quaternion object

Parameters:
quat - the Quaternion object to convert
orientation - the float array to initialize with the axis angle orientation

Jeospace API

Copyright © 2006 - jeospace.org