Replace Primitive vector with Eigen matrices.

template<unsigned N>
Prims<N> = Eigen::Matrix<unsigned, N, Eigen::Dynamic>

Replaces std::vector<Primitive<N>>
This commit is contained in:
David Allemang
2020-10-12 21:57:18 -04:00
parent 0534c4322c
commit 6b34694784
5 changed files with 65 additions and 95 deletions

View File

@@ -14,13 +14,16 @@
mat5 wander(float time) {
mat5 r = mat5::Identity();
r *= rot<5>(0, 2, time * .21f);
// r *= rot<5>(1, 4, time * .27f);
r *= rot<5>(0, 2, time * .15f);
r *= rot<5>(1, 2, time * .13f);
r *= rot<5>(0, 1, time * .20f);
r *= rot<5>(0, 3, time * .17f);
r *= rot<5>(1, 3, time * .25f);
r *= rot<5>(2, 3, time * .12f);
// r *= rot<5>(1, 4, time * .27f);
return r;
}