diff options
| author | chai <chaifix@163.com> | 2018-11-25 13:08:56 +0800 |
|---|---|---|
| committer | chai <chaifix@163.com> | 2018-11-25 13:08:56 +0800 |
| commit | 1d54138b94a384917d47abd8109c586b1b7ac323 (patch) | |
| tree | 0ce0584b341c2619295ccf8cbcf6511e080c4fb5 /src/libjin/math/je_vector2.hpp | |
| parent | 25b394738f08bc2e7b23f8343096f8296b46c633 (diff) | |
*粒子系统
Diffstat (limited to 'src/libjin/math/je_vector2.hpp')
| -rw-r--r-- | src/libjin/math/je_vector2.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libjin/math/je_vector2.hpp b/src/libjin/math/je_vector2.hpp index 0a1a1e8..406b756 100644 --- a/src/libjin/math/je_vector2.hpp +++ b/src/libjin/math/je_vector2.hpp @@ -42,6 +42,11 @@ namespace JinEngine data[1] += v.data[1]; } + Vector2<T> operator +(const Vector2<T>& v) + { + return Vector2<T>(data[0] + v.data[0], data[1] + v.data[1]); + } + void set(T _x, T _y) { data[0] = _x; |
