matrix: change rotate args to match opengl order

This commit is contained in:
Danny Robson 2015-01-15 14:05:17 +11:00
parent 09f5894d0c
commit 0501d0a87a
2 changed files with 2 additions and 2 deletions

View File

@ -508,7 +508,7 @@ matrix<T>::scale (util::vector<3,T> v)
//-----------------------------------------------------------------------------
template <typename T>
matrix<T>
matrix<T>::rotate (util::vector<3,T> about, T angle)
matrix<T>::rotate (T angle, util::vector<3,T> about)
{
about.normalise ();

View File

@ -65,7 +65,7 @@ namespace util {
// Affine matrices
static matrix<T> translate (util::vector<3,T>);
static matrix<T> scale (util::vector<3,T>);
static matrix<T> rotate (util::vector<3,T> about, T angle);
static matrix<T> rotate (T angle, util::vector<3,T> about);
// Constant matrices
static const matrix<T> IDENTITY;