diff --git a/geom/ray.hpp b/geom/ray.hpp index 12f8aa13..5b2d13f6 100644 --- a/geom/ray.hpp +++ b/geom/ray.hpp @@ -33,11 +33,15 @@ namespace util::geom { constexpr ray (point _origin, vector _direction) noexcept: origin (_origin), direction (_direction) - { ; } + { + CHECK (is_normalised (direction)); + } constexpr ray (point _origin, point _distant) noexcept: ray (_origin, _origin.to (_distant )) - { ; } + { + CHECK (is_normalised (direction)); + } //---------------------------------------------------------------------