Makman2 / CE3D2

A simple 3D engine for the console
GNU General Public License v3.0
10 stars 3 forks source link

Add PermutationTransformation #42

Closed Makman2 closed 8 years ago

Makman2 commented 8 years ago

Permutes vector entries.

Makman2 commented 8 years ago

Boost actually has something like this implemented as a matrix: http://www.boost.org/doc/libs/1_46_0/libs/numeric/ublas/doc/html/classboost_1_1numeric_1_1ublas_1_1permutation__matrix.html The transformation can directly use this class.

Makman2 commented 8 years ago

The boost version does not inherit everything from matrix, so need to implement everything manually.