diff options
author | vng <viktor.govako@gmail.com> | 2012-05-03 17:53:03 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:39:03 +0300 |
commit | 0ac97df257484f654ba8b1eb492b7a4018f78055 (patch) | |
tree | a325abfbabfa39af486328c119f4df269f4ef503 /geometry | |
parent | c54195004a4f36af151a1c9ae3bcb7b73eb0cc5a (diff) |
Minor fix
Diffstat (limited to 'geometry')
-rw-r--r-- | geometry/avg_vector.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/geometry/avg_vector.hpp b/geometry/avg_vector.hpp index d11fc92f37..3750b4e8b1 100644 --- a/geometry/avg_vector.hpp +++ b/geometry/avg_vector.hpp @@ -14,6 +14,7 @@ namespace math { typedef deque<array<T, Dim> > ContT; typedef typename ContT::value_type ValueT; + ContT m_vectors; size_t m_count; @@ -26,7 +27,7 @@ namespace math return sqrt(res); } - void Average(ValueT const & a1, ValueT const & a2, T * res) const + static void Average(ValueT const & a1, ValueT const & a2, T * res) { for (size_t i = 0; i < Dim; ++i) res[i] = (a1[i] + a2[i]) / 2.0; |