Changeset 9095 in orxonox.OLD for branches/presentation/src/lib/math/quaternion.cc
- Timestamp:
- Jul 4, 2006, 3:11:27 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/lib/math/quaternion.cc
r9090 r9095 28 28 #define PRINT(x) printf 29 29 #endif 30 31 using namespace std;32 30 33 31 ///////////////// … … 58 56 m[0][1] = x.y; 59 57 m[0][2] = x.z; 60 m[0][3] = 0 ;58 m[0][3] = 0.0; 61 59 m[1][0] = y.x; 62 60 m[1][1] = y.y; 63 61 m[1][2] = y.z; 64 m[1][3] = 0 ;62 m[1][3] = 0.0; 65 63 m[2][0] = z.x; 66 64 m[2][1] = z.y; 67 65 m[2][2] = z.z; 68 m[2][3] = 0 ;69 m[3][0] = 0 ;70 m[3][1] = 0 ;71 m[3][2] = 0 ;72 m[3][3] = 1 ;66 m[2][3] = 0.0; 67 m[3][0] = 0.0; 68 m[3][1] = 0.0; 69 m[3][2] = 0.0; 70 m[3][3] = 1.0; 73 71 74 72 this->from4x4(m); … … 285 283 int i, j, k; 286 284 287 int nxt[3] = {1, 2, 0};285 static int nxt[3] = {1, 2, 0}; 288 286 289 287 tr = m[0][0] + m[1][1] + m[2][2];
Note: See TracChangeset
for help on using the changeset viewer.