summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/geom2d.cc2
-rw-r--r--crawl-ref/source/geom2d.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/geom2d.cc b/crawl-ref/source/geom2d.cc
index 294149149e..720f334226 100644
--- a/crawl-ref/source/geom2d.cc
+++ b/crawl-ref/source/geom2d.cc
@@ -17,7 +17,7 @@ static bool double_is_zero(double d)
}
// Is v parallel to the kernel of f?
-static bool parallel(vector v, form f)
+bool parallel(const vector &v, const form &f)
{
return (double_is_zero(f(v)));
}
diff --git a/crawl-ref/source/geom2d.h b/crawl-ref/source/geom2d.h
index e06f8bc28f..ec10258e3e 100644
--- a/crawl-ref/source/geom2d.h
+++ b/crawl-ref/source/geom2d.h
@@ -84,6 +84,7 @@ struct grid
double intersect(const ray &r, const line &l);
double nextintersect(const ray &r, const lineseq &ls);
+bool parallel(const vector& v, const form &f);
vector reflect(const vector& v, const form &f);
}