Identitymatrix

daemonburrito edited this page May 6, 2011 · 2 revisions

CubicVR.IdentityMatrix

The IdentityMatrix constant is used to represent the 4x4 identity matrix.

CubicVR.IdentityMatrix = 
    [ 1.0, 0.0, 0.0, 0.0,
      0.0, 1.0, 0.0, 0.0, 
      0.0, 0.0, 1.0, 0.0,
      0.0, 0.0, 0.0, 1.0 ];

Used as a starting point for matrix transforms, or as a representation of 'no transform' for functions that require a transform parameter.