net.jbeans.j3d.vecmath
Class VecMath3D

java.lang.Object
  extended bynet.jbeans.j3d.vecmath.VecMath3D

public class VecMath3D
extends java.lang.Object

VecMath3D defines many 3D related Vector/Matrix methods.

Version:
$Revision: 1.3 $
Author:
Masahiro Takatsuka (masa@jbeans.net)

Method Summary
 javax.vecmath.Vector3d orthogonalToSpherical(javax.vecmath.Vector3d or, javax.vecmath.Vector3d sp)
          Convert the specified Vector3{fd}'s coordinate from Orthogonal to Spherical.
 javax.vecmath.Vector3f orthogonalToSpherical(javax.vecmath.Vector3f or, javax.vecmath.Vector3f sp)
          Convert the specified Vector3{fd}'s coordinate from Orthogonal to Spherical.
 javax.vecmath.Matrix3d rotationMatrixToAlignVector(javax.vecmath.Vector3d v, javax.vecmath.Matrix3d ra)
          Computes a rotation matrix to align the specified Vector to the Y-axis.
 javax.vecmath.Matrix3f rotationMatrixToAlignVector(javax.vecmath.Vector3f v, javax.vecmath.Matrix3f ra)
          Computes a rotation matrix to align the specified Vector to the Y-axis.
 javax.vecmath.Vector3d sphericalToOrthogonal(javax.vecmath.Vector3d sp, javax.vecmath.Vector3d or)
           
 javax.vecmath.Vector3f sphericalToOrthogonal(javax.vecmath.Vector3f sp, javax.vecmath.Vector3f or)
          Convert the specified Vector3{fd}'s coordinate from Spherical to Orthogonal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sphericalToOrthogonal

public javax.vecmath.Vector3f sphericalToOrthogonal(javax.vecmath.Vector3f sp,
                                                    javax.vecmath.Vector3f or)
Convert the specified Vector3{fd}'s coordinate from Spherical to Orthogonal.


sphericalToOrthogonal

public javax.vecmath.Vector3d sphericalToOrthogonal(javax.vecmath.Vector3d sp,
                                                    javax.vecmath.Vector3d or)

orthogonalToSpherical

public javax.vecmath.Vector3f orthogonalToSpherical(javax.vecmath.Vector3f or,
                                                    javax.vecmath.Vector3f sp)
Convert the specified Vector3{fd}'s coordinate from Orthogonal to Spherical.


orthogonalToSpherical

public javax.vecmath.Vector3d orthogonalToSpherical(javax.vecmath.Vector3d or,
                                                    javax.vecmath.Vector3d sp)
Convert the specified Vector3{fd}'s coordinate from Orthogonal to Spherical.


rotationMatrixToAlignVector

public javax.vecmath.Matrix3f rotationMatrixToAlignVector(javax.vecmath.Vector3f v,
                                                          javax.vecmath.Matrix3f ra)
Computes a rotation matrix to align the specified Vector to the Y-axis. The vector is in the Orthogonal coordinate system.


rotationMatrixToAlignVector

public javax.vecmath.Matrix3d rotationMatrixToAlignVector(javax.vecmath.Vector3d v,
                                                          javax.vecmath.Matrix3d ra)
Computes a rotation matrix to align the specified Vector to the Y-axis. The vector is in the Orthogonal coordinate system.



Copyright © 1995-2004 net.jbeans. All Rights Reserved.