Commit 55f2deea authored by Philip Trettner's avatar Philip Trettner
Browse files

quadric inversion

parent e208eb52
......@@ -314,6 +314,22 @@ public:
+ c; // + c
}
[[nodiscard]] constexpr quadric operator-() const
{
quadric q;
q.A00 = -A00;
q.A11 = -A11;
q.A22 = -A22;
q.A01 = -A01;
q.A02 = -A02;
q.A12 = -A12;
q.b0 = -b0;
q.b1 = -b1;
q.b2 = -b2;
q.c = -c;
return q;
}
// TODO: fix me
template <class T>
friend constexpr T distance_sqr(pos<3, T> const& p, quadric<3, T> const& q);
......
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