Skip to content

cf_m4_transform_point

Category: math
GitHub: cute_math3d.h


Transforms a point by a matrix, with the perspective divide applied.

CF_V3 cf_m4_transform_point(CF_M4x4 m, CF_V3 p)
Parameters Description
m The matrix.
p The point. Treated as w = 1, so translation applies.

CF_M4x4
CF_V3
cf_m4_transform_dir
cf_mul