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