summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/geom2d.h
Commit message (Collapse)AuthorAgeFilesLines
* Add get_degrees and set_degrees to ray_def; reenable chaos bolt munging.Robert Vollmert2009-11-031-0/+2
|
* Add geom::line constructor.Robert Vollmert2009-11-031-0/+4
|
* Make geom::parallel visible outside geom2d.Robert Vollmert2009-11-031-0/+1
|
* Simplify geom2d ray advance code.Robert Vollmert2009-11-011-1/+1
|
* Add a bunch of ASSERTs to ray.cc.Robert Vollmert2009-11-011-0/+2
|
* Some geom2d changes.Robert Vollmert2009-11-011-2/+6
| | | | | 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-2/+3
| | | | | 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-1/+2
| | | | | | | | 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.
* Add simple 2d geometry library.Robert Vollmert2009-11-011-0/+84
Its point is to allow intersecting rays with grid lines and advancing rays from one cell to the next.