Pure 4×4 matrix math in column-major order, element m[col * 4 + row], the
storage order of glTF and three.js.
The interface never exposes a matrix: nodes carry translation, rotation and
scale so every value stays animatable (IAutoMovieTransform). Composing a
hierarchy under non-uniform scale needs a real matrix product, because a
scaled parent rotating a child produces a shear that no translation,
rotation and scale triple can carry, so the engine composes world matrices
here and hands them to the renderer. Every function leaves its inputs
unchanged and returns a new value.
Pure 4×4 matrix math in column-major order, element
m[col * 4 + row], the storage order of glTF andthree.js.The interface never exposes a matrix: nodes carry translation, rotation and scale so every value stays animatable (
IAutoMovieTransform). Composing a hierarchy under non-uniform scale needs a real matrix product, because a scaled parent rotating a child produces a shear that no translation, rotation and scale triple can carry, so the engine composes world matrices here and hands them to the renderer. Every function leaves its inputs unchanged and returns a new value.