geom/ray: correct the sense of ray/plane distance
This commit is contained in:
parent
a1aa0c6949
commit
cfefca7767
@ -72,8 +72,8 @@ namespace util::geom {
|
||||
{
|
||||
CHECK_SANITY (r);
|
||||
|
||||
return dot (p.coefficients, r.origin. template redim<S+1> (1)) /
|
||||
dot (p.coefficients, r.direction.template redim<S+1> (0));
|
||||
return -dot (p.coefficients, r.origin. template redim<S+1> (1)) /
|
||||
dot (p.coefficients, r.direction.template redim<S+1> (0));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user