From f9b497b5c01f29153bd8ebd434d36d85303c67e3 Mon Sep 17 00:00:00 2001 From: andrey Date: Fri, 2 Oct 2020 15:07:36 +0300 Subject: [PATCH] revert operator for PIMathVectorT --- libs/main/math/pimathvector.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/main/math/pimathvector.h b/libs/main/math/pimathvector.h index 75bc284e..09b8d07b 100644 --- a/libs/main/math/pimathvector.h +++ b/libs/main/math/pimathvector.h @@ -125,6 +125,11 @@ inline PIMathVectorT sqrt(const PIMathVectorT & v) {PIMa template inline PIMathVectorT sqr(const PIMathVectorT & v) {PIMathVectorT ret; PIMV_FOR(i, 0) {ret[i] = sqr(v[i]);} return ret;} +template +inline PIByteArray & operator <<(PIByteArray & s, const PIMathVectorT & v) {for (uint i = 0; i < Size; ++i) s << v[i]; return s;} +template +inline PIByteArray & operator >>(PIByteArray & s, PIMathVectorT & v) {for (uint i = 0; i < Size; ++i) s >> v[i]; return s;} + template inline PIMathVectorT<2u, T> createVectorT2(T x, T y) {return PIMathVectorT<2u, T>(PIVector() << x << y);}