Class Matrix4

java.lang.Object
org.web3d.vrml.scripting.ecmascript.builtin.FieldScriptableObject
org.web3d.vrml.scripting.ecmascript.builtin.Matrix4
All Implemented Interfaces:
org.mozilla.javascript.Scriptable

public class Matrix4 extends FieldScriptableObject
ECMAScript Matrix4 builtin object.

The implementation of all the functionality in this class is according to the Matrix and Quaternion FAQ, which is currently located at: http://www.j3d.org/matrix_faq/

The spec is sort of a bit wishy-washy about how the flat references of array indices. Internally the matrix is stored with the translations values down the right "column" where the X3D spec has them across the bottom. Not entirely convinced that this is correct. Just makes it easy to check this code against the FAQ code, which uses them stored in the same way.

Version:
$Revision: 1.2 $
Author:
Justin Couch