Commit f1e5a051 authored by Philip Trettner's avatar Philip Trettner
Browse files

added quadrics to functions

parent a1032632
......@@ -32,6 +32,7 @@
#include <typed-geometry/functions/perpendicular.hh>
#include <typed-geometry/functions/perspective.hh>
#include <typed-geometry/functions/project.hh>
#include <typed-geometry/functions/quadrics.hh>
#include <typed-geometry/functions/random_choice.hh>
#include <typed-geometry/functions/rasterize.hh>
#include <typed-geometry/functions/reflect.hh>
......
......@@ -17,7 +17,7 @@ template <int D, class ScalarT>
TG_NODISCARD constexpr quadric<D, ScalarT> point_quadric(pos<D, ScalarT> const& p)
{
quadric<D, ScalarT> Q;
Q.add(mat<D, D, ScalarT>::identity(), vec<D, ScalarT>(p), ScalarT(0));
Q.add(mat<D, D, ScalarT>::identity, vec<D, ScalarT>(p), ScalarT(0));
return Q;
}
......
Supports Markdown
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