• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisióna5ee68727464319e766bd8750162d295d73915e4 (tree)
Tiempo2013-01-22 04:15:56
AutorKatsuhiko Nishimra <ktns.87@gmai...>
CommiterKatsuhiko Nishimra

Log Message

Fix typo.

Cambiar Resumen

Diferencia incremental

--- a/src/base/MathUtilities.cpp
+++ b/src/base/MathUtilities.cpp
@@ -88,40 +88,40 @@ template <typename T> T min(T a, T b){
8888 }
8989
9090 // rotating matrix
91-void CalcRotatingMatrix(double matrix[][3], double sita, CartesianType cartesianType){
91+void CalcRotatingMatrix(double matrix[][3], double theta, CartesianType cartesianType){
9292 if(cartesianType == XAxis){
9393 matrix[0][0] = 1.0;
9494 matrix[0][1] = 0.0;
9595 matrix[0][2] = 0.0;
9696
9797 matrix[1][0] = 0.0;
98- matrix[1][1] = cos(sita);
99- matrix[1][2] = sin(sita);
98+ matrix[1][1] = cos(theta);
99+ matrix[1][2] = sin(theta);
100100
101101 matrix[2][0] = 0.0;
102- matrix[2][1] = -sin(sita);
103- matrix[2][2] = cos(sita);
102+ matrix[2][1] = -sin(theta);
103+ matrix[2][2] = cos(theta);
104104 }
105105 else if(cartesianType == YAxis){
106- matrix[0][0] = cos(sita);
106+ matrix[0][0] = cos(theta);
107107 matrix[0][1] = 0.0;
108- matrix[0][2] = -sin(sita);
108+ matrix[0][2] = -sin(theta);
109109
110110 matrix[1][0] = 0.0;
111111 matrix[1][1] = 1.0;
112112 matrix[1][2] = 0.0;
113113
114- matrix[2][0] = sin(sita);
114+ matrix[2][0] = sin(theta);
115115 matrix[2][1] = 0.0;
116- matrix[2][2] = cos(sita);
116+ matrix[2][2] = cos(theta);
117117 }
118118 else if(cartesianType == ZAxis){
119- matrix[0][0] = cos(sita);
120- matrix[0][1] = sin(sita);
119+ matrix[0][0] = cos(theta);
120+ matrix[0][1] = sin(theta);
121121 matrix[0][2] = 0.0;
122122
123- matrix[1][0] = -sin(sita);
124- matrix[1][1] = cos(sita);
123+ matrix[1][0] = -sin(theta);
124+ matrix[1][1] = cos(theta);
125125 matrix[1][2] = 0.0;
126126
127127 matrix[2][0] = 0.0;
--- a/src/base/MathUtilities.h
+++ b/src/base/MathUtilities.h
@@ -28,7 +28,7 @@ template <typename T> T Max(T a, T b);
2828 // min
2929 template <typename T> T min(T a, T b);
3030 // rotating matrix
31-void CalcRotatingMatrix(double matrix[][3], double sita, CartesianType cartesianType);
31+void CalcRotatingMatrix(double matrix[][3], double theta, CartesianType cartesianType);
3232 // calculate determinant of the matrix. Note taht the matrix will be destroid
3333 double GetDeterminant(double** matrix, int dim);
3434 }