Changeset 1321
 Timestamp:
 Apr 30, 2012, 8:40:56 PM (9 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/test/unit/rotation.cpp
r1320 r1321 35 35 LOLUNIT_ASSERT_DOUBLES_EQUAL(b.x, a.y, 1e5); 36 36 LOLUNIT_ASSERT_DOUBLES_EQUAL(b.y, a.x, 1e5); 37 38 float d = determinant(m90); 39 40 LOLUNIT_ASSERT_DOUBLES_EQUAL(d, 1.0, 1e5); 37 41 } 38 42 … … 74 78 LOLUNIT_ASSERT_DOUBLES_EQUAL(d.y, a.x, 1e5); 75 79 LOLUNIT_ASSERT_DOUBLES_EQUAL(d.z, a.z, 1e5); 80 81 float dx = determinant(m90x); 82 float dy = determinant(m90y); 83 float dz = determinant(m90z); 84 85 LOLUNIT_ASSERT_DOUBLES_EQUAL(dx, 1.0, 1e5); 86 LOLUNIT_ASSERT_DOUBLES_EQUAL(dy, 1.0, 1e5); 87 LOLUNIT_ASSERT_DOUBLES_EQUAL(dz, 1.0, 1e5); 76 88 } 77 89 … … 109 121 LOLUNIT_ASSERT_DOUBLES_EQUAL(c.y, b.y, 1e5); 110 122 LOLUNIT_ASSERT_DOUBLES_EQUAL(c.z, b.z, 1e5); 123 124 float n = norm(q20); 125 126 LOLUNIT_ASSERT_DOUBLES_EQUAL(n, 1.0, 1e5); 111 127 } 112 128 … … 122 138 LOLUNIT_ASSERT_DOUBLES_EQUAL(q2.y, q1.y, 1e5); 123 139 LOLUNIT_ASSERT_DOUBLES_EQUAL(q2.z, q1.z, 1e5); 140 141 float n1 = norm(q1); 142 float n2 = norm(q2); 143 144 LOLUNIT_ASSERT_DOUBLES_EQUAL(n1, 1.0, 1e5); 145 LOLUNIT_ASSERT_DOUBLES_EQUAL(n2, 1.0, 1e5); 124 146 } 125 147 … … 142 164 LOLUNIT_ASSERT_DOUBLES_EQUAL(m2[1][2], m1[1][2], 1e5); 143 165 LOLUNIT_ASSERT_DOUBLES_EQUAL(m2[2][2], m1[2][2], 1e5); 166 167 float d1 = determinant(m1); 168 float d2 = determinant(m2); 169 170 LOLUNIT_ASSERT_DOUBLES_EQUAL(d1, 1.0, 1e5); 171 LOLUNIT_ASSERT_DOUBLES_EQUAL(d2, 1.0, 1e5); 144 172 } 145 173
Note: See TracChangeset
for help on using the changeset viewer.