Commit Graph

3376 Commits

Author SHA1 Message Date
ca6fa4ad3e float: use ULP based comparison 2015-01-21 23:32:06 +11:00
f64e232201 point: point subtraction should give a vector 2015-01-19 19:14:53 +11:00
319a8ce616 coord: use inherited class for data definitions
keep as many operations centralised in the base coord class as possible.
2015-01-19 19:13:52 +11:00
ca66f831f7 matrix: add scalar scaling matrix 2015-01-19 19:12:44 +11:00
31b3e5ab68 time: use monotonic_clock
monotonic is unaffected by system time changes
2015-01-19 19:11:57 +11:00
803ec2cacc time: use floats for seconds 2015-01-19 19:11:41 +11:00
6eb2badaef build: remove generic fwd helpers
It's purpose was to build pointer typedefs for pre-C++11 code, which is
something we never really supported anyway.
2015-01-19 19:08:46 +11:00
2210db9c4e point: add a cast method 2015-01-19 13:27:13 +11:00
d3f098216c json: give invalid character offset in error msg 2015-01-18 15:37:40 +11:00
b152729cb5 json: allow arrays as the root node 2015-01-18 15:37:40 +11:00
fa52752629 vector: add vector2i and vector2u typedefs 2015-01-16 14:44:26 +11:00
1f93f907af region: add region2f convenience typedef 2015-01-16 14:44:04 +11:00
bb20aec311 region: update debug check macros 2015-01-16 14:43:50 +11:00
a9c723326b whitespace 2015-01-16 14:42:56 +11:00
4df3523b28 extent: add vector2f convenience typedef 2015-01-16 14:42:18 +11:00
5c1b37d10d extent: add expansion operation 2015-01-16 14:42:04 +11:00
79be955d28 maths: allow mixed type variadic min/max 2015-01-15 14:06:17 +11:00
21725e9b99 debug: change WARN to print condition as message 2015-01-15 14:05:43 +11:00
0501d0a87a matrix: change rotate args to match opengl order 2015-01-15 14:05:17 +11:00
09f5894d0c point: add scalar division operation 2015-01-15 14:04:51 +11:00
c931c718fe extent: move ostream operator to util namespace 2015-01-15 14:04:18 +11:00
75156cedc3 colour: remove redundant rgba member variables 2015-01-15 14:03:44 +11:00
7ef4cbcc1a vector: add redim operation 2015-01-15 14:01:51 +11:00
19317eb3ea region: add convenience typedef region2u 2015-01-15 14:01:15 +11:00
0112d663ff region: add point/extent constructor 2015-01-15 14:01:05 +11:00
d905d817c6 fixed: instantiate for 26:6 2015-01-15 13:59:43 +11:00
496991f46e fixed: add to_integral, from_native 2015-01-15 13:59:28 +11:00
f688d8adda fixed: allow implicit construction from integers 2015-01-15 13:58:56 +11:00
bb0271ab2b point: add simple redim with fill test 2015-01-13 18:41:51 +11:00
917ab8fc8e point: add redim with fill 2015-01-13 18:41:51 +11:00
64c11bdcb0 point/vector: use coord constructors 2015-01-13 18:41:51 +11:00
82ee179b64 matrix: add convenience type matrix4f 2015-01-13 18:41:51 +11:00
7f152e5350 matrix: add matrix multiplication assignment 2015-01-13 18:41:51 +11:00
616f6f1db9 matrix: add point multiplication 2015-01-13 18:41:51 +11:00
dadfe6173e point: add convenience typedef point4f 2015-01-13 18:41:51 +11:00
f6aeef594e matrix: remove to_{global/local}
functions were poorly specified
2015-01-13 18:41:51 +11:00
58fb2c942f matrix: remove instance functions translate/scale
functions were untested and poorly specified
2015-01-13 18:41:51 +11:00
ccc21b2ae8 colour: derive from detail::coord 2015-01-13 18:41:51 +11:00
123ce6fcb4 coord: add missing required headers 2015-01-13 18:41:51 +11:00
0bf6e79932 coord: make dimension constexpr 2015-01-13 18:41:51 +11:00
79cb10c7cb coord: add default copy and assign operators 2015-01-13 18:41:51 +11:00
ed62d9516e coord: make scalar constructors explicit 2015-01-13 18:41:51 +11:00
f309c5dbd0 maths: add float overload of to_radians 2015-01-13 18:41:51 +11:00
a691f3b748 maths: add constexpr to min,max,to_{radian,degree} 2015-01-13 18:32:01 +11:00
9e18b9b57a whitespace 2015-01-13 18:31:03 +11:00
ccbae2dcb1 extent: add typecasting member function 2015-01-13 18:30:10 +11:00
25f21a66e4 colour: rename variables to r,g,b,a
for consistency with coord types
2015-01-13 10:50:12 +11:00
04b22cb64d coord: add dimension constant 2015-01-12 16:03:24 +11:00
143213db77 coord: add value_type typedef 2015-01-12 16:03:24 +11:00
2640811e03 endian: avoid directly byteswapping signed ints 2015-01-10 20:08:07 +11:00