GEL
2
GEL is a library for Geometry and Linear Algebra
|
00001 #ifndef __CGLA_VEC2F_H__ 00002 #define __CGLA_VEC2F_H__ 00003 00004 #include "ArithVec2Float.h" 00005 #include "Vec2i.h" 00006 00007 00008 namespace CGLA { 00009 00012 class Vec2f: public ArithVec2Float<float,Vec2f> 00013 { 00014 public: 00015 00016 Vec2f() {} 00017 Vec2f(float _a,float _b): ArithVec2Float<float,Vec2f>(_a,_b) {} 00018 00019 template<class T, class V, unsigned int N> 00020 explicit Vec2f(const ArithVec<T,V,N>& v): 00021 ArithVec2Float<float,Vec2f>(static_cast<float>(v[0]), 00022 static_cast<float>(v[1])) {} 00023 00024 explicit Vec2f(float a): ArithVec2Float<float,Vec2f>(a,a) {} 00025 }; 00026 00027 00028 00029 } 00030 #endif