Skip to content

cf_impact

Category: collision
GitHub: cute_math.h


Returns the impact point of a ray, given the time of impact t.

CF_V2 cf_impact(CF_Ray r, float t) { return cf_add(r.p, cf_mul_v2_f(r.d, t)); }

CF_Ray
cf_endpoint