Skip to content

cf_transform_aabb3

Category: math
GitHub: cute_math3d.h


Returns the AABB of a box transformed by an affine matrix (Arvo's method).

CF_Aabb3 cf_transform_aabb3(CF_M4x4 m, CF_Aabb3 bb)

Remarks

The result bounds the transformed box, so repeated transforms accumulate slop -- transform the original local-space AABB by the full matrix each time instead of chaining.

CF_Aabb3
CF_M4x4
cf_frustum_test_aabb3