diff options
Diffstat (limited to 'crawl-ref/source/geom2d.cc')
-rw-r--r-- | crawl-ref/source/geom2d.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/crawl-ref/source/geom2d.cc b/crawl-ref/source/geom2d.cc index 861e2748f8..294149149e 100644 --- a/crawl-ref/source/geom2d.cc +++ b/crawl-ref/source/geom2d.cc @@ -66,14 +66,6 @@ double nextintersect(const ray &r, const lineseq &ls) return (t); } -// Line distance in the ray parameter. -// ls.f(r.shoot(tdist)) == ls.f(r.start) +- ls.dist -static double tdist(const ray &r, const lineseq &ls) -{ - ASSERT(!parallel(r.dir, ls.f)); - return (std::abs(ls.dist / ls.f(r.dir))); -} - // Move the ray towards the next grid line. // Half way there if "half" is true, else all the way there // Returns whether it hit a corner. |