Chapter 4. Matrix

Table of Contents

Matrix Functions
R3MxColumnToVector
R3MxVectorToColumn
R3MxRowToVector
R3MxVectorToRow
R3MxNull
R3MxIdentity
R3MxCopy
R3MxTranspose
R3MxInvert
R3MxFInvert
R3MxConcat
R3MxFConcat
R3MxTransform4
R3MxTransform
R3MxFTransform
R3MxTransformL
R3MxFTransformL
R3MxTranslate
R3MxConcatTranslate
R3MxSpace
R3MxSpaceFromMatrix
R3MxInvSpace
R3MxSpaceWarp
R3MxRotate
R3MxConcatRotate
R3MxScale
R3MxConcatScale
R3MxSkew
R3MxConcatSkew
R3MxSkew3p
R3MxPerspective
R3MxConcatPerspective
R3MxOrthogonal
R3MxConcatOrthogonal
R3MxPlaneHitByDirection
R3MxPlaneHitBySource
R3MxRotate2V
R3MxDeform
R3MxNormal
R3MxToIntui
R3MxFromIntui
R3MxWrite
R3MxRead
R3MxPrint
JavaScript Matrix Class
r3Matrix
identity
set
translate
scale
rotate
rotate2v
skew
invert
mktran
transform
transforml
null
transpose
cmp
copy
orthogonal
perspective

Matrix is a row dominated 4x4 matrix. Realsoft 3D uses matrices to represent spaces and transformations for geometric objects.

  +----------------+
  | a0  a1  a2  a3 |
  |                |
  | b0  b1  b2  b3 |
  |                |
  | c0  c1  c2  c3 |
  |                |
  | d0  d1  d2  d3 |
  +----------------+

Matrix operations (such as concatenation, scale, translate etc. concatenate the new matrix on the right side. In other words, the latest operation is executed the first using 'first in last out' order.