Updated test programs with SDL_M_PI*
This commit is contained in:
1 parent
05139f4a2e
commit
199423612c
3 files changed
+115
-115
No files matched your search
+1
-1
@@ -127,7 +127,7 @@ rotate_matrix(float angle, float x, float y, float z, float *r)
|
||||
float radians, c, s, c1, u[3], length;
|
||||
int i, j;
|
||||
|
||||
radians = (float)(angle * M_PI) / 180.0f;
|
||||
radians = (angle * SDL_M_PIf) / 180.0f;
|
||||
|
||||
c = SDL_cosf(radians);
|
||||
s = SDL_sinf(radians);
|
||||
|
||||
Reference in new issue
Block a user