From 15ce567a680a6c2273bf743403b0c65665b25e00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Tue, 7 Jun 2016 11:05:49 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@204 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- src/math/pimathvector.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/math/pimathvector.h b/src/math/pimathvector.h index 5e6a95d0..d4a56e53 100644 --- a/src/math/pimathvector.h +++ b/src/math/pimathvector.h @@ -88,6 +88,7 @@ public: _CVector operator /(const Type & v) const {_CVector tv = _CVector(*this); PIMV_FOR(i, 0) tv[i] /= v; return tv;} _CVector operator /(const _CVector & v) const {_CVector tv = _CVector(*this); PIMV_FOR(i, 0) tv[i] /= v[i]; return tv;} _CVector operator *(const _CVector & v) const {if (Size != 3) return _CVector(); _CVector tv; tv.fill(Type(1)); tv[0] = c[1]*v[2] - v[1]*c[2]; tv[1] = v[0]*c[2] - c[0]*v[2]; tv[2] = c[0]*v[1] - v[0]*c[1]; return tv;} + _CVector operator &(const _CVector & v) const {_CVector tv = _CVector(*this); PIMV_FOR(i, 0) tv[i] *= v[i]; return tv;} Type operator ^(const _CVector & v) const {Type tv(0); PIMV_FOR(i, 0) tv += c[i] * v[i]; return tv;} PIMathMatrixT<1, Size, Type> transposed() const {