geom/ray: reinsert is_normalised check for direction param
This commit is contained in:
parent
d8e4354f22
commit
e134d911e6
@ -33,11 +33,15 @@ namespace util::geom {
|
||||
constexpr ray (point<S,T> _origin, vector<S,T> _direction) noexcept:
|
||||
origin (_origin),
|
||||
direction (_direction)
|
||||
{ ; }
|
||||
{
|
||||
CHECK (is_normalised (direction));
|
||||
}
|
||||
|
||||
constexpr ray (point<S,T> _origin, point <S,T> _distant) noexcept:
|
||||
ray (_origin, _origin.to (_distant ))
|
||||
{ ; }
|
||||
{
|
||||
CHECK (is_normalised (direction));
|
||||
}
|
||||
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user