Subversion Repositories gelsvn

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 bj 1
#ifndef __CGLA_VEC2D_H__
2
#define __CGLA_VEC2D_H__
3
 
4
#include "ArithVec.h"
5
#include "Vec2i.h"
6
#include "Vec2f.h"
7
 
8
 
9
namespace CGLA {
10
 
11
	/** 2D double floating point vector */
12
 
13
	class Vec2d: public ArithVec2Float<double,Vec2d>
14
	{
15
	public:
16
 
17
		Vec2d() {}
18
 
19
		Vec2d(double _a,double _b): 
20
			ArithVec2Float<double,Vec2d>(_a,_b) {}
21
 
22
		explicit Vec2d(const Vec2i& v): 
23
			ArithVec2Float<double,Vec2d>(v[0],v[1]) {}
24
 
25
		explicit Vec2d(const Vec2f& v): 
26
			ArithVec2Float<double,Vec2d>(v[0],v[1]) {}
27
 
28
		explicit Vec2d(double a): 
29
			ArithVec2Float<double,Vec2d>(a,a) {}
30
 
31
	};
32
 
33
}
34
#endif