Commit 53477031 authored by Philip Trettner's avatar Philip Trettner

Merge branch 'agrabowy' into 'develop'

Added project onto inf_cone (default_tag)

See merge request !70
parents 975139e5 b4570aa2
......@@ -379,6 +379,15 @@ template <class ScalarT>
// ============== project to inf_cone ==============
template <class ScalarT>
[[nodiscard]] constexpr pos<3, ScalarT> project(pos<3, ScalarT> const& p, inf_cone<3, ScalarT> const& icone)
{
if (contains(icone, p))
return p;
return project(p, boundary_of(icone));
}
template <class ScalarT>
[[nodiscard]] constexpr pos<3, ScalarT> project(pos<3, ScalarT> const& p, inf_cone_boundary<3, ScalarT> const& icone)
{
......
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