Skip to main content

Module transform

Module transform 

Source
Expand description

Transform propagation — parent-child coordinate hierarchy.

plCoordinateInterface maintains local-to-parent and local-to-world matrices. When a parent moves, all children recompute their world transforms.

C++ ref: pnSceneObject/plCoordinateInterface.h/.cpp

Functions§

mat44_identity
Create an identity 4x4 matrix.
mat44_is_identity
Check if a matrix is identity.
mat44_multiply
Multiply two 4x4 matrices stored as [f32; 16] in row-major order. hsMatrix44 is row-major: fMap[row][col], flat index = row*4+col.
mat44_transform_direction
Transform a direction (no translation) by a row-major 4x4 matrix.
mat44_transform_point
Transform a point by a row-major 4x4 matrix.
mat44_translation
Extract translation from a row-major 4x4 matrix. Translation is at fMap[0][3]=m[3], fMap[1][3]=m[7], fMap[2][3]=m[11].
propagate_transform
Propagate transforms through a parent-child hierarchy.