Commit graph

8 commits

Author SHA1 Message Date
6861329ab9 Rename for_each_voxel to for_each_cell. 2018-03-05 10:34:41 +00:00
40967784a3 Add parameter to skip the callback on the first tile.
For example if you are going from tile 1,1 to 1,2 you would get
two notifications if parInclFirst==true, one for 1,1 and one for
1,2. If parInclFirst==false, then you will only get a notification
for 1,2. Note that if the segment passed to to
for_each_voxel_under_segment() is too short and doesn't span over
the initial tile, passing parInclFirst==false will discard the
only callback you would normally get. Effectively this can be used
for a sort of "on tile changed" notification.
2017-07-23 16:22:04 +01:00
ff91bbbc71 Fix code so raytrace test now passes. 2017-02-10 19:24:44 +00:00
80d0e1c336 Add test for intersection and fix data in raytracer test. 2017-02-10 15:40:26 +00:00
413ff4e558 Expose private functions in grid_raytrace for unit testing. 2017-02-09 19:31:38 +00:00
47aa9f2948 Move everything into a shared lib so unit test can access stuff. 2017-02-09 18:11:09 +00:00
e2d307da52 Initial WiP implementation of 2D grid raytracing. Not working. 2017-02-08 16:39:46 +00:00
5a8c3fcac0 Add Catch for unit testing. 2017-02-08 16:32:55 +00:00