فهرست منبع

Merge pull request #96 from dariomanesku/master

Fixed sin(y) sign in mtxRotateXY().
Branimir Karadžić 11 سال پیش
والد
کامیت
f028ba8f24
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      examples/common/fpumath.h

+ 3 - 3
examples/common/fpumath.h

@@ -279,11 +279,11 @@ inline void mtxRotateXY(float* _result, float _ax, float _ay)
 
 
 	memset(_result, 0, sizeof(float)*16);
 	memset(_result, 0, sizeof(float)*16);
 	_result[ 0] = cy;
 	_result[ 0] = cy;
-	_result[ 2] = -sy;
-	_result[ 4] = -sx*sy;
+	_result[ 2] = sy;
+	_result[ 4] = sx*sy;
 	_result[ 5] = cx;
 	_result[ 5] = cx;
 	_result[ 6] = -sx*cy;
 	_result[ 6] = -sx*cy;
-	_result[ 8] = cx*sy;
+	_result[ 8] = -cx*sy;
 	_result[ 9] = sx;
 	_result[ 9] = sx;
 	_result[10] = cx*cy;
 	_result[10] = cx*cy;
 	_result[15] = 1.0f;
 	_result[15] = 1.0f;