From fc242f52e835be85cc6030b6cae5619d18df7670 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Mon, 30 Jul 2018 06:32:51 -0400 Subject: various changes --- lib/vector.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/vector.h') diff --git a/lib/vector.h b/lib/vector.h index 72633a8..7d0ee36 100644 --- a/lib/vector.h +++ b/lib/vector.h @@ -61,6 +61,12 @@ class vector_t : public std::array { return result; } + + inline vector_t operator-(const vector_t& v) const { + vector_t diff = *this; + diff -= v; + return diff; + } }; -- cgit v1.2.3-70-g09d2