Skip to main content

Module transform

Module transform 

Source
Expand description

Semantic local spatial transform value.

Transform owns affine placement — translation, rotation, scale, and optional row-basis shear. It is the universal placement primitive composed by cameras, scene nodes, lights, joints, and any other type that exists in 3D space.

All stateless operations live as free functions in this module (FnTransform in the C++ donor collapses into module functions per the Rust porting rule).

Donor: oacpp/source/cpp/include/oa/core/transform.h and oacpp/source/cpp/include/oa/core/fnTransform.h. Adaptation: C++ static-method namespace → module functions; setMatrix / getMatrix become set_matrix / get_matrix; six-D rotation helpers are module-level free functions.

Structs§

Transform
Semantic local spatial transform value.

Functions§

quaternion_from_six_d
Recover a unit quaternion from a 6-component rotation representation.
quaternion_to_six_d
Pack a unit quaternion into a 6-component continuous rotation representation.