Commit 0c9b77ee authored by Aaron Grabowy's avatar Aaron Grabowy
Browse files

Added missing aabb_of(aabb_boundary) and normal_of(sphere2in3_boundary)

parent a6c6371f
......@@ -25,7 +25,7 @@ template <int D, class ScalarT>
template <int D, class ScalarT, class TraitsT>
[[nodiscard]] constexpr aabb<D, ScalarT> aabb_of(aabb<D, ScalarT, TraitsT> const& b)
{
return b;
return aabb<D, ScalarT>(b);
}
template <int D, class ScalarT, class TraitsT>
......
......@@ -34,8 +34,8 @@ template <int D, class ScalarT>
return h.normal;
}
template <class ScalarT>
[[nodiscard]] constexpr dir<3, ScalarT> normal_of(sphere<2, ScalarT, 3> const& d)
template <class ScalarT, class TraitsT>
[[nodiscard]] constexpr dir<3, ScalarT> normal_of(sphere<2, ScalarT, 3, TraitsT> const& d)
{
return d.normal;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment