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:
|
constexpr ray (point<S,T> _origin, vector<S,T> _direction) noexcept:
|
||||||
origin (_origin),
|
origin (_origin),
|
||||||
direction (_direction)
|
direction (_direction)
|
||||||
{ ; }
|
{
|
||||||
|
CHECK (is_normalised (direction));
|
||||||
|
}
|
||||||
|
|
||||||
constexpr ray (point<S,T> _origin, point <S,T> _distant) noexcept:
|
constexpr ray (point<S,T> _origin, point <S,T> _distant) noexcept:
|
||||||
ray (_origin, _origin.to (_distant ))
|
ray (_origin, _origin.to (_distant ))
|
||||||
{ ; }
|
{
|
||||||
|
CHECK (is_normalised (direction));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user