Commit c0d55bcd authored by Philip Trettner's avatar Philip Trettner

added inf cylinder contains

parent bef5e83a
......@@ -279,6 +279,13 @@ template <class ScalarT>
}
}
template <class ScalarT>
[[nodiscard]] constexpr bool contains(inf_cylinder<3, ScalarT> const& c, pos<3, ScalarT> const& p, dont_deduce<ScalarT> eps = ScalarT(0))
{
auto d = distance(c.axis, p);
return d <= c.radius + eps;
}
template <class ScalarT>
[[nodiscard]] constexpr bool contains(inf_cone<3, ScalarT> const& c, pos<3, ScalarT> const& p, dont_deduce<ScalarT> eps = ScalarT(0))
{
......
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