org.jagatoo.loaders.models.collada.datastructs.visualscenes
Class MatrixTransform

java.lang.Object
  extended by org.jagatoo.loaders.models.collada.datastructs.visualscenes.COLLADATransform
      extended by org.jagatoo.loaders.models.collada.datastructs.visualscenes.MatrixTransform

public class MatrixTransform
extends COLLADATransform

A COLLADA Transform using a 4x4 Matrix to represent the transformation.


Constructor Summary
MatrixTransform()
          Creates a new COLLADAMatrixTransform with an identity matrix.
MatrixTransform(float[] floats)
          Creates a new COLLADAMatrixTransform.
MatrixTransform(org.openmali.vecmath2.Matrix4f matrix)
          Creates a new COLLADAMatrixTransform.
 
Method Summary
 org.openmali.vecmath2.Matrix4f getMatrix()
           
 MatrixTransform getMatrixTransform()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatrixTransform

public MatrixTransform(org.openmali.vecmath2.Matrix4f matrix)
Creates a new COLLADAMatrixTransform.

Parameters:
matrix - The Matrix to instanciate from

MatrixTransform

public MatrixTransform(float[] floats)
Creates a new COLLADAMatrixTransform.

Parameters:
floats - Floats in the Matrix

MatrixTransform

public MatrixTransform()
Creates a new COLLADAMatrixTransform with an identity matrix.

Method Detail

getMatrix

public final org.openmali.vecmath2.Matrix4f getMatrix()
Returns:
the matrix.

getMatrixTransform

public final MatrixTransform getMatrixTransform()

Specified by:
getMatrixTransform in class COLLADATransform
Returns:
a Matrix transform version of this Transform This is required for convenience when implementing scenegraph binding