Add ray stream output operator
This commit is contained in:
parent
7155aa49e8
commit
67918449bc
1 changed files with 9 additions and 0 deletions
|
|
@ -3,6 +3,8 @@
|
|||
#include <psemek/geom/vector.hpp>
|
||||
#include <psemek/geom/point.hpp>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
namespace psemek::geom
|
||||
{
|
||||
|
||||
|
|
@ -56,4 +58,11 @@ namespace psemek::geom
|
|||
return res;
|
||||
}
|
||||
|
||||
template <typename T, std::size_t N>
|
||||
std::ostream & operator << (std::ostream & os, ray<T, N> const & r)
|
||||
{
|
||||
os << '[' << r.origin << ", " << r.direction << ']';
|
||||
return os;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue