Easily Dealing With Any-Dimensional Planes
gpfault.net·3d·
Discuss: Hacker News
📐Projective Geometry
Preview
Report Post

published on Dec 24 2025

Writing the post from yesterday reminded me of another well-known representation for a geometric primitive, the plane, that makes code pleasing to look at and simple.

Planes

In general, a "plane" is an n-1 dimensional sub-space of an n-dimensional space that is flat. There’s a mathematically rigorous definition of what "flat" really means, but intuitive understanding is sufficient for the purposes of this explanation.

To fully specify a plane, we only need two things: the plane’s normal vector (which we’ll call `n`) and any point within the plane (we’ll refer to it as `o`). But we don’t actually need to store both the point and the vector in our representation.

By definition, the plane’s normal …

Similar Posts

Loading similar posts...