diff --git a/libs/math/include/psemek/math/ray.hpp b/libs/math/include/psemek/math/ray.hpp index c517d9dd..7611c51d 100644 --- a/libs/math/include/psemek/math/ray.hpp +++ b/libs/math/include/psemek/math/ray.hpp @@ -58,6 +58,12 @@ namespace psemek::math return res; } + template + ray cast(ray const & r) + { + return {cast(r.origin), cast(r.direction)}; + } + template std::ostream & operator << (std::ostream & os, ray const & r) {