Skip to content
Snippets Groups Projects
Commit 1b11ecff authored by Aaron Grabowy's avatar Aaron Grabowy
Browse files

Changed all explicit intersections from ray to line intersections and added...

Changed all explicit intersections from ray to line intersections and added default conversions from line to ray
parent 49b66510
No related branches found
No related tags found
1 merge request!100Intersections with ray/line for all objects + various smaller additions
......@@ -35,7 +35,19 @@ template <>
struct priority_tag<0>
{
};
// see https://stackoverflow.com/questions/44395169/why-is-sfinae-on-if-constexpr-not-allowed
template <template <class...> class, class, class...>
struct can_apply : std::false_type
{
};
template <template <class...> class Z, class... Ts>
struct can_apply<Z, std::void_t<Z<Ts...>>, Ts...> : std::true_type
{
};
} // namespace detail
template <template <class...> class Z, class... Ts>
constexpr bool can_apply = detail::can_apply<Z, void, Ts...>::value;
template <class...>
constexpr bool always_false = false;
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment