ray: add deduction guides

This commit is contained in:
Danny Robson 2018-04-13 18:47:07 +10:00
parent bef0aa4929
commit 44b3d8d628

View File

@ -54,6 +54,13 @@ namespace util::geom {
}; };
template <size_t S, typename T>
ray (point<S,T>,point<S,T>) -> ray<S,T>;
template <size_t S, typename T>
ray (point<S,T>,vector<S,T>) -> ray<S,T>;
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
/// returns the distance along the ray in a ray-plane intersection /// returns the distance along the ray in a ray-plane intersection
/// ///