Skip to content

CF_Plane3

Category: math
GitHub: cute_math3d.h


A 3d plane in normal-distance form: points x on the plane satisfy dot(n, x) == d.

Struct Members Description
CF_V3 n The plane's normal vector (unit length).
float d Distance to origin along n; d = dot(n, p) for any point p on the plane.

Remarks

The 3d analog of CF_Halfspace. The halfspace dot(n, x) >= d is the "inside" for frustum planes.

CF_Frustum
cf_make_plane3
cf_plane3_at
cf_distance_plane3
cf_project_plane3
cf_ray3_to_plane3