geom/ray: add an (explicitly) default constructor
This commit is contained in:
parent
2576061b26
commit
1d988608c1
@ -28,6 +28,8 @@
|
|||||||
namespace util::geom {
|
namespace util::geom {
|
||||||
template <size_t S, typename T>
|
template <size_t S, typename T>
|
||||||
struct ray {
|
struct ray {
|
||||||
|
constexpr ray () = default;
|
||||||
|
|
||||||
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user