Commit Graph

104 Commits

Author SHA1 Message Date
31d1d741e9 extent/region: update to use size parameters 2015-03-03 04:13:29 +11:00
08783ef1a3 region: use correct width/height in inset test 2015-03-02 18:49:13 +11:00
69864bdfcd region: add rebase method
sets region base point
2015-03-02 18:49:12 +11:00
3e2c70f251 region: add magnitude setter 2015-03-02 18:49:12 +11:00
84c957440b region: add extent-only constructor 2015-02-20 21:53:34 +11:00
0a153e8e12 region: add vector subtraction operator 2015-02-20 16:06:46 +11:00
ba878238af region: add vector addition operator 2015-02-20 15:26:59 +11:00
cb5e76cff9 region: rename far to away
far is a reserved word in win32
2015-02-18 02:32:52 +11:00
c7a868beac region: add two point constructor 2015-02-17 18:25:29 +11:00
b50a8289b9 region: space 2015-02-17 16:25:41 +11:00
8383b7e2ed region: offset max region's base
stops signed types from only covering negative coordinate regions
2015-02-17 16:24:49 +11:00
e1ebacb16a region: add far corner query 2015-02-17 16:24:33 +11:00
8ea1a04f57 region: add extent query method 'size' 2015-02-17 16:24:16 +11:00
6bd9ad333c region: try to use unsigned types for extent 2015-02-17 16:23:54 +11:00
1c7a92ee48 region: change MAX to finite numbers
some algorithms react badly to unexpected infinities. using finite
numbers can aleviate this for some problem cases.
2015-02-16 23:38:08 +11:00
1db9057c95 region: add per-axis expansion calls 2015-02-04 15:44:51 +11:00
76b51e04b2 region: add expansion methods 2015-01-22 14:58:29 +11:00
91ecc49d68 region: add inset method 2015-01-21 23:40:13 +11:00
fe143717c5 region: style, comments, namespacing 2015-01-21 23:40:13 +11:00
bb20aec311 region: update debug check macros 2015-01-16 14:43:50 +11:00
0112d663ff region: add point/extent constructor 2015-01-15 14:01:05 +11:00
5956d0421e parameterise point, vector, region, matrix on type 2014-12-15 20:10:56 +11:00
bce3abac40 build: remove implicit type casting warnings 2014-07-02 15:47:53 +10:00
d1ed7107ae region: remove vector addition operator
It is unclear what this operator was supposed to do, and triggers a
number of sign and type warnings. Re-add later if necessary under a more
descriptive name.
2014-07-02 15:47:53 +10:00
6aa89a740d Fix typo in region::closest condition 2013-09-19 15:15:38 +10:00
0e36781721 Add manhattan closest calculation 2013-09-18 13:52:11 +10:00
f256f4d0e9 Add a point constrain method to region
Force a point to not exceed the region boundaries.
2013-08-05 16:38:05 +10:00
1f37a8d04c Add constrain operation for points in regions 2013-07-30 23:52:09 +10:00
847242a59f Add scale operation for regions 2013-07-30 23:51:55 +10:00
baf8ded43d Add UNIT and MAX region objects 2012-06-15 16:38:57 +10:00
9447910061 Add structure for region iterator
It is not currently enabled as the exact semantics aren't really known,
but as we're likely to want something similar later then we shouldn't
throw the code away.
2012-06-14 18:29:09 +10:00
33dd8d370d Add strategic casting in region calculations
Avoids sign casting and comparison warnings.
2012-06-13 16:01:42 +10:00
4fa7789786 Instantiate templates in their enclosing namespace 2012-06-13 16:01:42 +10:00
d9211483a0 Instance some signed region types 2012-06-08 16:57:18 +10:00
45a1b6b93c Make width/height unsigned where possible 2012-05-25 15:30:28 +10:00
f9cc4926f2 Categorise functionality from types.hpp 2012-05-25 15:19:07 +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
c1ba948b20 Add region::overlap to for overlapping regions 2012-05-11 12:22:23 +10:00
77942e008d Change my email to an active domain 2012-04-23 13:10:50 +10:00
c2ca63e024 Add unsigned long instantiation of extent and region 2012-02-09 14:55:14 +11:00
2cf895daf9 Change abbreviate width/height variables 2011-10-26 22:59:47 +11:00
f7075fd9d2 Add more operators to region 2011-10-26 21:43:55 +11:00
d1187ecf3a Moved extent to a seperate file 2011-10-26 21:43:38 +11:00
020a3a4afe Add diameter methods to region and extent 2011-10-24 19:55:51 +11:00
30060de999 Add region ostream operator 2011-10-20 23:53:30 +11:00
1f4a744b29 Add centre method to region 2011-10-20 23:53:18 +11:00
0347936983 Add region::contains method 2011-10-20 21:09:47 +11:00
b71049df85 Add includes query for region and point 2011-10-17 17:20:17 +11:00
e8c9e1a11f Add overlaps query for regions 2011-10-10 22:37:27 +11:00
e816983869 Use util namespace for range test 2011-08-29 15:03:43 +10:00
712cd39625 Move region to the util namespace 2011-08-15 20:10:43 +10:00
20f81a7630 Correct package name in copyright headers
Package is no longer waif, after its seperation from the waif
library/application. Hopefully there aren't any more dependencies...
2011-06-21 20:26:32 +10:00
745e06d1af initial import from waif 2011-05-23 17:18:52 +10:00