Changeset 1796
- Timestamp:
- Aug 23, 2012, 4:05:03 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lol/math/vector.h
r1513 r1796 1218 1218 \ 1219 1219 DECLARE_VECTOR_VECTOR_BOOLOP(tname, ==, ==, true, tprefix, t1, t2) \ 1220 DECLARE_VECTOR_VECTOR_BOOLOP(tname, !=, ==, false, tprefix, t1, t2) 1221 1222 #define DECLARE_BINARY_VECTOR_COERCE_OPS(tname, tprefix, t1, t2, tf) \ 1223 DECLARE_SCALAR_VECTOR_COERCE_OP(tname, /, tprefix, t1, t2, tf) \ 1220 DECLARE_VECTOR_VECTOR_BOOLOP(tname, !=, ==, false, tprefix, t1, t2) \ 1224 1221 \ 1225 1222 tprefix \ … … 1231 1228 return ret; \ 1232 1229 } 1230 1231 #define DECLARE_BINARY_VECTOR_COERCE_OPS(tname, tprefix, t1, t2, tf) \ 1232 DECLARE_SCALAR_VECTOR_COERCE_OP(tname, /, tprefix, t1, t2, tf) 1233 1233 1234 1234 #define DECLARE_VEC_3_COERCE_OPS(tname, tprefix, t1, t2, tf) \ … … 1355 1355 1356 1356 /* Hack for compilation speedups: we can hide some of our global methods in 1357 * namespaces. We therefore want "long_double" to be a one-symbol type */1357 * namespaces. We therefore want "long_double" to be a single-word name */ 1358 1358 typedef long double long_double; 1359 1359 -
trunk/test/unit/quat.cpp
r1341 r1796 78 78 79 79 LOLUNIT_ASSERT_EQUAL(norm(a * d), norm(a) * norm(d)); 80 } 81 82 LOLUNIT_TEST(Dot) 83 { 84 quat a(-1.f, 2.f, -3.f, 4.f); 85 quat b(8.f, 7.f, 6.f, 5.f); 86 87 LOLUNIT_ASSERT_EQUAL(dot(a, b), 8.f); 80 88 } 81 89
Note: See TracChangeset
for help on using the changeset viewer.