net.java.dev.joode.util
Class Matrix3

java.lang.Object
  extended by net.java.dev.joode.util.Real
      extended by net.java.dev.joode.util.Matrix
          extended by net.java.dev.joode.util.Matrix3

public class Matrix3
extends Matrix

Author:
Tom Larkworthy

Field Summary
 
Fields inherited from class net.java.dev.joode.util.Real
m
 
Constructor Summary
Matrix3()
           
 
Method Summary
static Matrix3 aquireInstance()
          gets a pooled instance.
static boolean epsilonEquals(Matrix3 a, Matrix3 b, float e)
           
static void releaseInstance(Matrix3 instance)
          returns a matrix into the object pool for a caller of aquireInstance.
 void setIdentity()
           
static Matrix3 setRandomRotationMatrix(Matrix3 result)
          Creates a random rotation matrix
static void setRotationX(Matrix3 qrel, float theta)
          set the matrix to be a rotation about the z axis by an amount theta
static void setRotationY(Matrix3 qrel, float theta)
          set the passed in matrix to be a rotation about the y axis by theta radians
static void setRotationZ(Matrix3 qrel, float theta)
          set the matrix to be a rotation about the z axis by an amount theta
 
Methods inherited from class net.java.dev.joode.util.Matrix
aquireInstance, epsilonEquals, get, getColumn, getColumn, getColumns, getRow, getRows, mul, mul, mul, mulInc, mulTranspose, mulTranspose, releaseInstance, set, setColumn, setRow, solve, toString, transpose, transposeMul, transposeMul, transposeMul
 
Methods inherited from class net.java.dev.joode.util.Real
add, aquireDirtyInstance, aquireInstance, dot, dot, epsilonEquals, epsilonEquals, fill, get, length, lengthSquared, max, min, norm, normalize, releaseInstance, scale, set, set, setZero, size, sub
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Matrix3

public Matrix3()
Method Detail

aquireInstance

public static Matrix3 aquireInstance()
gets a pooled instance. Return the object with releaseInstance. Matrix is initialized to identity

Returns:

releaseInstance

public static void releaseInstance(Matrix3 instance)
returns a matrix into the object pool for a caller of aquireInstance.


setIdentity

public void setIdentity()
Overrides:
setIdentity in class Matrix

epsilonEquals

public static boolean epsilonEquals(Matrix3 a,
                                    Matrix3 b,
                                    float e)

setRotationZ

public static void setRotationZ(Matrix3 qrel,
                                float theta)
set the matrix to be a rotation about the z axis by an amount theta

Parameters:
qrel -

setRotationX

public static void setRotationX(Matrix3 qrel,
                                float theta)
set the matrix to be a rotation about the z axis by an amount theta

Parameters:
qrel -

setRotationY

public static void setRotationY(Matrix3 qrel,
                                float theta)
set the passed in matrix to be a rotation about the y axis by theta radians

Parameters:
qrel -

setRandomRotationMatrix

public static Matrix3 setRandomRotationMatrix(Matrix3 result)
Creates a random rotation matrix

Parameters:
result -
Returns: