GEL
2
GEL is a library for Geometry and Linear Algebra
|
00001 #ifndef __CGLA_VEC3D_H__ 00002 #define __CGLA_VEC3D_H__ 00003 00004 #include "ArithVec.h" 00005 #include "Vec3i.h" 00006 #include "Vec3usi.h" 00007 #include "Vec3f.h" 00008 00009 00010 namespace CGLA { 00011 00016 class Vec3d: public ArithVec3Float<double,Vec3d> 00017 { 00018 public: 00019 00021 Vec3d(){} 00022 00024 Vec3d(double a, double b, double c): ArithVec3Float<double,Vec3d>(a,b,c) {} 00025 00027 explicit Vec3d(double a): 00028 ArithVec3Float<double,Vec3d>(a,a,a) {} 00029 00031 explicit Vec3d(const Vec3i& v): 00032 ArithVec3Float<double,Vec3d>(v[0],v[1],v[2]) {} 00033 00035 explicit Vec3d(const Vec3usi& v): 00036 ArithVec3Float<double,Vec3d>(v[0],v[1],v[2]) {} 00037 00039 explicit Vec3d(const Vec3f& v): 00040 ArithVec3Float<double,Vec3d>(v[0],v[1],v[2]) {} 00041 }; 00042 00043 00044 } 00045 #endif