Skip to content

cf_plane

Category: math
GitHub: cute_math.h


Constructs a halfspace (2D plane) from a normal and distance or from a normal and point.

#define cf_plane(a, b)

Remarks

cf_plane(n, d) creates a plane with signed distance d from the origin. cf_plane(n, p) creates a plane passing through point p with normal n.

cf_halfspace
cf_mul
cf_mul_T
cf_dot