From: Euclidian Space: Planes, I see the formula:
Convert Three points to normal notation
N = (p1-p0) × (p2 - p0)
d = -N • p0^2
where:
N = normal to plane (not necessarily unit length) d = perpendicular distance of plane from origin. p0,p1 and p2 = vertex points x = cross product
When calculating the distance to the origin from the plane (d)... A) how is the p0 squared? B) how do I resolve the dot product of the vector (-N dot p0^2) to scalar distance?
d
does not correspond to Euclidean distance from the origin. (To demonstrate, replacep1
with a new pointp3
which is twice as far fromp0
while remaining on the same plane. We've now doubled the length ofN
and quadrupled the value ofd
, even though we didn't move the plane at all!). Instead I'd expect an expression liked = dot(N, p0)/length(N)
\$\endgroup\$