geom/plane: use 'd' contribution for distance

This commit is contained in:
Danny Robson 2018-04-20 15:32:20 +10:00
parent aab066593b
commit f3f26fca64

View File

@ -81,7 +81,7 @@ namespace util::geom {
{
auto d = dot (
p.coefficients,
q.template redim<S+1> (0)
q.template redim<S+1> (-1)
);
return d / norm (normal (p));