249f8adfed
region: forward is_valid to component point and extent
2016-10-25 19:59:06 +11:00
e5d44d0c6d
coord: instantiate signed types
2016-10-25 17:50:11 +11:00
9546526c1f
region: remove extent_t/point_t distinction
...
it's too problematic to retain signedness distinctions between base
points and region extents. just use the same types, but retain the
named typedefs for compatibility.
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
00eca4445b
debug: use less complex specialistion for validator
2016-08-10 17:36:25 +10:00
8f8896b0f6
debug: use appropriate signed literals for CHECK
2016-08-10 17:34:54 +10:00
809e7b0421
iostream: use consistent ostream format
2016-03-11 13:01:57 +11:00
7f4cf49931
iterator: use infix_iterator for coord ostream
2016-03-11 12:48:19 +11:00
424e6e8701
cast: move types/casts to cast
2015-11-17 16:19:27 +11:00
1de33ce53c
debug: use new namespace
2015-10-29 10:45:42 +11:00
4cd6dcc85c
region: use size_type for scaling param
2015-10-19 17:08:08 +11:00
d73e86b374
coord: avoid casting errors for coord types
2015-10-19 12:06:03 +11:00
86834281b8
coord: add 16 bit value instantiations
2015-09-22 17:24:16 +10:00
69443f2c2a
region: use explict constructors for member vars
2015-09-09 18:45:23 +10:00
c3c1b9cc39
region: fix potential infinite recursion
2015-09-08 14:33:59 +10:00
2658b41ea1
relicence under Apache-2.0
2015-04-13 18:05:28 +10:00
426fc1c848
region: remove two-scalar constructor
...
two-scalar constructor is too similar to extent and point constructors
leading to unexpected initialisation problems.
2015-04-02 15:01:17 +11:00
1ec7761309
region: add calls to debug::sanity
2015-03-07 03:20:28 +11:00
832472c861
extent,region: instantiation for 3d types
2015-03-06 17:52:40 +11:00
439bb19679
coord: move operators out of subclasses
2015-03-06 01:09:58 +11:00
872499360f
extent: derive from generic coord class
2015-03-03 19:43:09 +11:00
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