summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/geom2d.cc
Commit message (Collapse)AuthorAgeFilesLines
* Add get_degrees and set_degrees to ray_def; reenable chaos bolt munging.Robert Vollmert2009-11-031-0/+14
|
* Make geom::parallel visible outside geom2d.Robert Vollmert2009-11-031-1/+1
|
* Remove unused function from geom2d.cc.Robert Vollmert2009-11-011-8/+0
|
* Simplify geom2d ray advance code.Robert Vollmert2009-11-011-40/+24
|
* Add a bunch of ASSERTs to ray.cc.Robert Vollmert2009-11-011-0/+8
|
* Some geom2d changes.Robert Vollmert2009-11-011-9/+25
| | | | | 1. Add function to reflect vector at a line. 2. Implement scalar multiplication as external operator.
* Make nextcell and movehalfcell methods of geom::ray.Robert Vollmert2009-11-011-19/+22
| | | | | Seems sensible given they modify the ray, even if it's not really something intrinsic to a ray.
* Change corner handling.Robert Vollmert2009-11-011-2/+21
| | | | | | | | ray_def should now deal with hitting corners gracefully, though the raycasting will still discard such rays. If a ray hits a corner between two diamonds, it will stay there, and calling ray_def::pos will arbitrarily give one of the squares -- this is not optimal, but these rays shouldn't usually show up anyway.
* Simplify geom2d.cc to stop at corners.Robert Vollmert2009-11-011-19/+6
| | | | | Remove the unsure fudging. This does introduce the possiblity of hanging in place.
* Add simple 2d geometry library.Robert Vollmert2009-11-011-0/+149
Its point is to allow intersecting rays with grid lines and advancing rays from one cell to the next.