Commit Graph

1014 Commits

Author SHA1 Message Date
199be3213a introspection: add simple static introspection types 2015-04-20 17:51:00 +10:00
fa8387252e tuple: add tuple iteration helpers 2015-04-20 17:48:11 +10:00
29af32106b types: add type_tag helper struct 2015-04-20 17:48:11 +10:00
f9e8ea78bf variadic: add index helper type 2015-04-20 17:13:14 +10:00
1be5be38ea ray: add convenience point-point constructor 2015-04-15 18:59:28 +10:00
b1263e8f14 sphere: add ostream operator 2015-04-15 18:00:58 +10:00
bb15548fb6 ray: add ostream operator 2015-04-15 18:00:45 +10:00
d0bf00a9ac ray: style 2015-04-15 18:00:37 +10:00
a946b182f9 aabb: add diameter method 2015-04-15 17:16:34 +10:00
ed38fd0491 sphere: check radius is positive at construction 2015-04-15 14:30:37 +10:00
3decd9e0ab sphere: give data members proper names 2015-04-15 14:29:20 +10:00
fb97584ad6 ray: give data members proper names 2015-04-15 14:25:35 +10:00
13abad0d43 vector: use mag2 for normalised check 2015-04-15 14:25:16 +10:00
e939cca6fd ray: return NaN for negative aabb intersection 2015-04-15 14:20:59 +10:00
012f8107c6 point: operate on value types, not references 2015-04-15 14:14:01 +10:00
71d8a30769 vector: operate on value types, not references 2015-04-15 14:06:49 +10:00
ffaf10de21 extent: silence unused variable warning in test 2015-04-15 14:06:30 +10:00
6f1278767f vector: add is_normalised 2015-04-15 13:52:37 +10:00
f87481c5e0 vector: add constant unit vector 2015-04-15 13:52:22 +10:00
13ea2bbdf5 vector: style 2015-04-15 13:48:07 +10:00
46bd7f739f tap: explicitly type the test as std::function
clang doesn't like to implicitly cast lambdas to functions.
2015-04-15 13:39:59 +10:00
8863ebafe9 ray: add ray-sphere intersection test 2015-04-13 21:47:51 +10:00
7e2baf6751 ray: convert test to TAP format 2015-04-13 21:47:37 +10:00
54f5f2d170 tap: add expect_nan function 2015-04-13 21:46:56 +10:00
e0636a5b5e sphere: add stub sphere class 2015-04-13 21:46:40 +10:00
7f5533ff35 tap: consolidate expect_* functions 2015-04-13 21:45:49 +10:00
5ee3d14811 add a stub README 2015-04-13 18:10:27 +10:00
7ae57730f0 whitespace 2015-04-13 18:06:08 +10:00
2658b41ea1 relicence under Apache-2.0 2015-04-13 18:05:28 +10:00
bbbbb675a6 test: move tests to TAP output 2015-04-13 16:45:56 +10:00
241ad65df9 aabb: add equality operator 2015-04-13 16:44:30 +10:00
e9c0ed3f5f tap: use an object for logging 2015-04-13 16:43:49 +10:00
a7f96a127d colour: add hsv/rgb conversions 2015-04-09 21:50:42 +10:00
e7fba43935 colour: add hsv field names 2015-04-09 21:50:22 +10:00
7307d73bbc colour: add html and x11 string lookup 2015-04-09 20:46:55 +10:00
ef4475949d colour: specialise the cast function 2015-04-09 20:46:24 +10:00
0d1fb0147e colour: add generic ostream operators 2015-04-09 20:44:54 +10:00
7c33efda62 maths: reduce cast warnings in renormalise 2015-04-09 20:43:14 +10:00
be92d3a11f stream: add numeric ostream iomanip 2015-04-09 20:41:48 +10:00
21e172c3db stream: move bit ostream operator into util namespace 2015-04-09 20:41:24 +10:00
532dc415a4 colour: allow arbitrary colour dimensions 2015-04-09 18:00:40 +10:00
bd88832df3 coord: move cast/redim operations to coord 2015-04-09 17:58:47 +10:00
5428c93b9a coord: pass client class to coord base
allows common typesafe implementation of cast and redim
2015-04-09 17:47:35 +10:00
9f6c17d6cf maths: add renormalise function 2015-04-09 17:44:50 +10:00
afad51db9d aabb: add expand call 2015-04-09 14:05:01 +10:00
c94535dfae vector: note the order of components for polar 2015-04-08 19:00:46 +10:00
af11d7c730 extent: add contract methods 2015-04-08 19:00:33 +10:00
5b878983a6 aabb: add contract and closest methods 2015-04-08 19:00:17 +10:00
a4c22059ed aabb: rename expand to cover 2015-04-08 18:59:45 +10:00
e1b03e0735 coord: express negate with scalar value multiply
we don't have universal scalar reference operations implemented, this
avoids a temporary and removes compile errors
2015-04-08 14:53:55 +10:00