|
j3d.org Code | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.j3d.util.MatrixUtils
public class MatrixUtils
A utility class that performs various matrix operations on the
javax.vecmath package.
| Constructor Summary | |
|---|---|
MatrixUtils()
Construct a default instance of this class. |
|
| Method Summary | |
|---|---|
boolean |
inverse(javax.vecmath.Matrix4f src,
javax.vecmath.Matrix4f dest)
Calculate the inverse of a 4x4 matrix and place it in the output. |
void |
lookAt(javax.vecmath.Point3d eye,
javax.vecmath.Point3d center,
javax.vecmath.Vector3d up,
javax.vecmath.Matrix4d res)
Perform a LookAt camera calculation and place it in the given matrix. |
void |
lookAt(javax.vecmath.Point3f eye,
javax.vecmath.Point3f center,
javax.vecmath.Vector3f up,
javax.vecmath.Matrix4f res)
Perform a LookAt camera calculation and place it in the given matrix. |
void |
rotateX(float angle,
javax.vecmath.Matrix4f mat)
Set the matrix to the rotation about the X axis by the given angle. |
void |
rotateY(float angle,
javax.vecmath.Matrix4f mat)
Set the matrix to the rotation about the Y axis by the given angle. |
void |
setEuler(float x,
float y,
float z,
javax.vecmath.Matrix4f mat)
Set the upper 3x3 matrix based on the given the euler angles. |
void |
setEuler(javax.vecmath.Vector3f angles,
javax.vecmath.Matrix4f mat)
Set the upper 3x3 matrix based on the given the euler angles. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MatrixUtils()
| Method Detail |
|---|
public void lookAt(javax.vecmath.Point3f eye,
javax.vecmath.Point3f center,
javax.vecmath.Vector3f up,
javax.vecmath.Matrix4f res)
eye - The eye locationcenter - The place to look atup - The up vectorres - The result to put the calculation into
public void lookAt(javax.vecmath.Point3d eye,
javax.vecmath.Point3d center,
javax.vecmath.Vector3d up,
javax.vecmath.Matrix4d res)
eye - The eye locationcenter - The place to look atup - The up vectorres - The result to put the calculation into
public void setEuler(javax.vecmath.Vector3f angles,
javax.vecmath.Matrix4f mat)
angles - The set of angles to use, one per axismat - The matrix to set the values in
public void setEuler(float x,
float y,
float z,
javax.vecmath.Matrix4f mat)
x - The amount to rotate around the X axisy - The amount to rotate around the Y axisz - The amount to rotate around the Z axismat - The matrix to set the values in
public void rotateX(float angle,
javax.vecmath.Matrix4f mat)
angle - The angle to rotate in radiansmat - The matrix to set the values in
public void rotateY(float angle,
javax.vecmath.Matrix4f mat)
angle - The angle to rotate in radiansmat - The matrix to set the values in
public boolean inverse(javax.vecmath.Matrix4f src,
javax.vecmath.Matrix4f dest)
src - The source matrix to read the values fromdest - The place to put the inverted matrix
|
j3d.org Code | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||