diff options
Diffstat (limited to 'crawl-ref/source/geom2d.h')
-rw-r--r-- | crawl-ref/source/geom2d.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/crawl-ref/source/geom2d.h b/crawl-ref/source/geom2d.h index f1e2310bf4..504f1ed77a 100644 --- a/crawl-ref/source/geom2d.h +++ b/crawl-ref/source/geom2d.h @@ -13,10 +13,13 @@ struct vector const vector& operator+=(const vector &v); vector operator+(const vector &v) const; - const vector& operator*=(double t); - vector operator*(double t) const; + vector operator-() const; + const vector& operator-=(const vector &v); + vector operator-(const vector &v) const; }; +vector operator*(double t, const vector &v); + struct form { double a; @@ -79,6 +82,7 @@ struct grid double intersect(const ray &r, const line &l); double nextintersect(const ray &r, const lineseq &ls); +vector reflect(const vector& v, const form &f); } |