matrix: change rotate args to match opengl order
This commit is contained in:
parent
09f5894d0c
commit
0501d0a87a
@ -508,7 +508,7 @@ matrix<T>::scale (util::vector<3,T> v)
|
|||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
template <typename T>
|
template <typename T>
|
||||||
matrix<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 ();
|
about.normalise ();
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ namespace util {
|
|||||||
// Affine matrices
|
// Affine matrices
|
||||||
static matrix<T> translate (util::vector<3,T>);
|
static matrix<T> translate (util::vector<3,T>);
|
||||||
static matrix<T> scale (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
|
// Constant matrices
|
||||||
static const matrix<T> IDENTITY;
|
static const matrix<T> IDENTITY;
|
||||||
|
Loading…
Reference in New Issue
Block a user