cf_project¶
Category: math
GitHub: cute_math.h
Projects a point onto the surface of the plane.
CF_V2 cf_project(CF_Halfspace h, CF_V2 p) { float d = cf_distance_hs(h, p); return cf_sub(p, cf_v2(h.n.x * d, h.n.y * d)); }
Related Pages¶
CF_Halfspace
cf_plane
cf_origin
cf_distance_hs
cf_intersect_halfspace
cf_mul_tf_hs
cf_mul_T_tf_hs