Commit Graph

45 Commits

Author SHA1 Message Date
f6056153e3 rename root namespace from util to cruft
This places, at long last, the core library code into the same namespace
as the extended library code.
2018-08-05 14:42:02 +10:00
803acc9a87 relicense under MPL-2.0 2018-08-04 15:14:06 +10:00
87dda1c568 point: avoid signedness warnings for furthest point 2018-04-23 15:40:51 +10:00
eb2b85c4f6 point: add query for furthest pair 2018-04-18 21:48:55 +10:00
e7a76081e0 point: don't directly iterate over data 2018-04-16 16:00:32 +10:00
34788756d2 build: don't use './' as an include prefix
GCC produces ODR error when including paths of the form './foo' and
'foo' in the same binary. Rather than managing duplication we just
universally pick the absolute form over the relative form.
2017-11-22 16:49:37 +11:00
f6116eb63e point: prefer constexpr functions over static variables 2016-12-12 17:06:04 +11:00
86d35bf903 debug: explicitly instantiate extent/point validator 2016-11-17 18:43:32 +11:00
7121415c5f point: add is_valid specialisation 2016-10-25 19:58:19 +11:00
e5d44d0c6d coord: instantiate signed types 2016-10-25 17:50:11 +11:00
9a798446b5 build: remove unnecessary includes
discovered with include-what-you-use
2016-10-12 15:08:22 +11:00
7f4cf49931 iterator: use infix_iterator for coord ostream 2016-03-11 12:48:19 +11:00
86834281b8 coord: add 16 bit value instantiations 2015-09-22 17:24:16 +10:00
012f8107c6 point: operate on value types, not references 2015-04-15 14:14:01 +10:00
2658b41ea1 relicence under Apache-2.0 2015-04-13 18:05:28 +10:00
8a0eee50e3 point: add from function 2015-03-07 03:20:07 +11:00
439bb19679 coord: move operators out of subclasses 2015-03-06 01:09:58 +11:00
60f2a7e00d point: add self-division operator 2015-02-19 13:18:28 +11:00
6abfd252d9 coord: move free maths func from point to vector 2015-01-28 14:59:33 +11:00
52f53caee5 debug: drop support for CHECK_HARD
HARD vs SOFT assertions were never very well defined or supported.
Currently they just imply a level of functionality that isn't present;
it's better to remove them instead of expending the effort at this
point.
2015-01-28 14:49:34 +11:00
1b19dadd40 point: add free multiply operator 2015-01-21 23:40:13 +11:00
de538d528b point: collapse template instantiations behind def 2015-01-21 23:40:13 +11:00
f64e232201 point: point subtraction should give a vector 2015-01-19 19:14:53 +11:00
09f5894d0c point: add scalar division operation 2015-01-15 14:04:51 +11:00
64c11bdcb0 point/vector: use coord constructors 2015-01-13 18:41:51 +11:00
7007b76db6 point: add static const member ORIGIN 2015-01-05 18:08:20 +11:00
a248d14d54 point: instance ostream for size_t templates 2014-12-19 15:00:04 +11:00
58aeeb1786 point: add equality operator 2014-12-19 14:59:50 +11:00
1bb4c752f1 point: templatise distance functions 2014-12-19 14:59:16 +11:00
5956d0421e parameterise point, vector, region, matrix on type 2014-12-15 20:10:56 +11:00
4e8d9e793b Add subtraction operators for point - vector 2013-08-06 14:31:46 +10:00
b08a47e68f Restrice optimisation pragmas to GCC 2012-06-13 16:01:42 +10:00
58e69fbd44 Instance the point ostream operators 2012-06-08 16:45:39 +10:00
0ac8785b2a Fix some whitespace errors 2012-05-30 20:20:19 +10:00
247d47f733 Add more scalar operators 2012-05-26 18:02:11 +10:00
40c40507f9 Give vector and point templated dimension size 2012-05-18 17:56:24 +10:00
4f5d75a1df Make all check macros uppercase 2012-05-11 12:34:21 +10:00
6d879a96de Add distance2 for point 2012-05-03 18:12:12 +10:00
2aee108e79 Make 3d matrix/vectors and general matrix/vectors 2011-10-18 21:45:55 +11:00
dd1a935ed4 Add subtration operation for points 2011-09-13 16:49:10 +10:00
24e94d27fc Give point an ostream operator 2011-09-13 15:12:30 +10:00
8c995c22ac Make points be three dimensional 2011-09-13 15:12:09 +10:00
d6f0fd956c Add add/assign operator to point 2011-09-07 21:51:13 +10:00
6e73c22d91 Move point to the util namespace 2011-08-15 20:11:20 +10:00
f45c5faf76 Add basic 2 dimensional point classes 2011-06-23 22:04:51 +10:00