Commit 831901c6 authored by Julius NehringWirxel's avatar Julius NehringWirxel

Fixed faulty self-outer-product implementation

parent ea2785c9
......@@ -41,15 +41,10 @@ template <class ScalarT>
template <class T>
tg::mat<1, 1, T> self_outer_product(tg::vec<2, T> const& v)
tg::mat<1, 1, T> self_outer_product(tg::vec<1, T> const& v)
auto const a = v.x;
auto const b = v.y;
tg::mat<2, 2, T> M;
M[0][0] = a * a;
tg::mat<1, 1, T> M;
M[0][0] = v[0] * v[0];
return M;
template <class T>
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