Commit Graph

2632 Commits

Author SHA1 Message Date
63fb76c24c geom/ray: ensure direction is normalised after transform 2018-04-16 16:00:35 +10:00
4dcd10243c geom/ray: add validator specialisation 2018-04-16 16:00:32 +10:00
401c59bc0e tap: add proof-of-concept printf chaining 2018-04-16 16:00:32 +10:00
52fcb847c9 vector: add validator specialisation 2018-04-16 16:00:32 +10:00
4c5bc46ad9 rational: add ostream operator
required for upcoming TAP changes
2018-04-16 16:00:32 +10:00
f0a05e06e2 point: add forwarding assignment operator 2018-04-16 16:00:32 +10:00
e7a76081e0 point: don't directly iterate over data 2018-04-16 16:00:32 +10:00
2eb0b429ef geom/sphere: style 2018-04-16 16:00:32 +10:00
3bd795f5e3 matrix: move sfinae condition into template param list 2018-04-16 16:00:32 +10:00
c4eec456a0 coord/base: remove explicit from scalar constructor
we need to create vectors of zeros pretty often and it's pretty verbose
having to continually use the full type name each time.
2018-04-16 16:00:32 +10:00
05b1c2dd80 geom/ray: add matrix multiply operator 2018-04-16 16:00:32 +10:00
42ab7543a7 debug: add CHECK_FINITE assertion 2018-04-16 16:00:32 +10:00
64ea4fb6d4 quaternion: add docstrings 2018-04-16 16:00:32 +10:00
00515078f9 ray: move convenience typedefs directly after type decl 2018-04-16 16:00:32 +10:00
44b3d8d628 ray: add deduction guides 2018-04-16 16:00:32 +10:00
bef0aa4929 sphere: move ray tests into sphere's unit 2018-04-16 16:00:32 +10:00
28148dd890 vector: add make_basis function 2018-04-12 12:59:45 +10:00
56fdc7844e geom/frustum: test projection should use radians 2018-04-11 19:28:18 +10:00
1cc4f90b52 vector: add forwarding assignment operator 2018-04-11 19:28:03 +10:00
d7b36b0ee3 affine: add perspective matrix test cases 2018-04-11 18:26:30 +10:00
561925b201 vector: expose base assignment operator 2018-04-11 18:25:51 +10:00
366b1f7879 maths: use our abs implementation for relatively_equal
this simplifies calling logic for integral, floating, and coord types
2018-04-11 18:24:52 +10:00
34a274bc92 maths: move abs higher so more functions can use it 2018-04-11 18:24:34 +10:00
3b5e94e0ea matrix: add relatively_equal overload 2018-04-11 18:24:10 +10:00
2ef759877e matrix: add scalar filling constructor 2018-04-11 18:23:57 +10:00
ea75b102d0 matrix: assert that fov is within 0-360
this will catch more cases where degrees are used where radians area
expected.
2018-04-11 18:23:17 +10:00
f830b149b0 coord/ops: add scalar bool overload for any 2018-04-11 18:22:49 +10:00
2d801a1725 coord/base: actually set fill values in constructor 2018-04-11 18:22:25 +10:00
4e558ce9a9 geom/cylinder: add convenience cylinder3f typedef 2018-04-11 15:10:16 +10:00
6389839f4e alloc/allocator: add make_allocator convenience function 2018-04-09 18:34:22 +10:00
40cf869d7e geom/tri: add triangle area formula 2018-04-09 12:49:09 +10:00
24a530e23e maths: remove pow2 function
pow2 has been used enough times to mean 2^x and x^2 that it's not worth
the ambiguity. just use pow(b,e) directly.
2018-04-09 12:30:22 +10:00
d1da97f213 vector: clarify spherical components 2018-04-05 19:22:38 +10:00
3748b77500 time/delta_time: return nanoseconds objects rather than floats 2018-04-05 18:48:23 +10:00
665c8aa49e tuple/value: add reversing operation 2018-04-05 16:06:09 +10:00
1bafe204b6 tuple/index: fix incorrect header guard 2018-04-05 16:05:47 +10:00
d69a567431 tuple/index: add some index sequence generators and manipulators 2018-04-05 15:18:30 +10:00
c570d6ad2f tap: guard against users ignoring status return code 2018-04-05 13:55:07 +10:00
5f2b1a5c36 tuple: split tests into separate units 2018-04-05 13:54:42 +10:00
8f2f623520 tuple/value: add zip implementation 2018-04-05 12:23:12 +10:00
5c2b52b30b tuple/value: prefer std::invoke over manual calls 2018-04-05 12:22:44 +10:00
190307acb8 typeidx: use atomic variables for thread safety 2018-04-05 12:14:11 +10:00
cd06fdcd67 debug: add assertions_enabled variable 2018-04-05 12:13:37 +10:00
de247c7e7b cpp: add basic C preprocessor emulator 2018-04-01 14:49:10 +10:00
49ebbec37f string: don't use const members for tokeniser::iterator
this allows us to provide an assignment operator more easily
2018-04-01 14:47:33 +10:00
f404598edc string: add advance operator for tokeniser::iterator 2018-04-01 14:46:32 +10:00
5028de600a string: add indirection operator for tokeniser::iterator 2018-04-01 14:44:43 +10:00
bfa5700df0 view: add string comparison operators 2018-04-01 14:44:15 +10:00
41cf6c3d51 view: slice should be const 2018-04-01 14:44:08 +10:00
5b9eae9b25 posix/except: add templated error_code 2018-04-01 14:43:28 +10:00