graphene
diff src/gmath/vector.cc @ 5:2ce58d5309f0
swizzling
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 25 Jul 2015 17:19:27 +0300 |
parents | d30e24132b6e |
children |
line diff
1.1 --- a/src/gmath/vector.cc Sat Jul 25 07:42:30 2015 +0300 1.2 +++ b/src/gmath/vector.cc Sat Jul 25 17:19:27 2015 +0300 1.3 @@ -3,6 +3,11 @@ 1.4 1.5 namespace gph { 1.6 1.7 +Vector2::Vector2(const Vector3 &v) 1.8 + : x(v.x), y(v.y) 1.9 +{ 1.10 +} 1.11 + 1.12 Vector3::Vector3(const Vector4 &v) 1.13 : x(v.x), y(v.y), z(v.z) 1.14 {