org.jagatoo.loaders.models.collada.stax
Class XMLMatrixUtils

java.lang.Object
  extended by org.jagatoo.loaders.models.collada.stax.XMLMatrixUtils

public class XMLMatrixUtils
extends java.lang.Object

Utils to read Matrix from a COLLADA file.


Constructor Summary
XMLMatrixUtils()
           
 
Method Summary
static XMLMatrix4x4 readColumnMajor(java.lang.String str)
          Read a Blender-COLLADA column-major matrix and returns a column-major Vecmath matrix.
static XMLMatrix4x4 readRowMajor(java.lang.String str)
          Read a Blender-COLLADA row-major matrix and returns a column-major Vecmath matrix.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLMatrixUtils

public XMLMatrixUtils()
Method Detail

readRowMajor

public static XMLMatrix4x4 readRowMajor(java.lang.String str)
Read a Blender-COLLADA row-major matrix and returns a column-major Vecmath matrix. This is no longer used. As far as I can tell by the collada specification all matrices are column major.

Parameters:
str -
Returns:
the 4x4 XML matrix

readColumnMajor

public static XMLMatrix4x4 readColumnMajor(java.lang.String str)
Read a Blender-COLLADA column-major matrix and returns a column-major Vecmath matrix.

Parameters:
str -
Returns:
the 4x4 XML matrix