cf_project_plane3¶
Category: math
GitHub: cute_math3d.h
Projects p onto the plane (the closest point on the plane).
CF_V3 cf_project_plane3(CF_Plane3 plane, CF_V3 p) { return cf_sub_v3(p, cf_mul_v3_f(plane.n, cf_distance_plane3(plane, p))); }
Category: math
GitHub: cute_math3d.h
Projects p onto the plane (the closest point on the plane).
CF_V3 cf_project_plane3(CF_Plane3 plane, CF_V3 p) { return cf_sub_v3(p, cf_mul_v3_f(plane.n, cf_distance_plane3(plane, p))); }