Subversion Repositories gelsvn

Rev

Rev 89 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 89 Rev 595
-
 
1
/* ----------------------------------------------------------------------- *
-
 
2
 * This file is part of GEL, http://www.imm.dtu.dk/GEL
-
 
3
 * Copyright (C) the authors and DTU Informatics
-
 
4
 * For license and list of authors, see ../../doc/intro.pdf
-
 
5
 * ----------------------------------------------------------------------- */
-
 
6
 
-
 
7
/** @file Vec2d.h
-
 
8
 * @brief 2D double vector class.
-
 
9
 */
-
 
10
 
1
#ifndef __CGLA_VEC2D_H__
11
#ifndef __CGLA_VEC2D_H__
2
#define __CGLA_VEC2D_H__
12
#define __CGLA_VEC2D_H__
3
 
13
 
4
#include "ArithVec.h"
14
#include "ArithVec.h"
5
#include "Vec2i.h"
15
#include "Vec2i.h"
6
#include "Vec2f.h"
16
#include "Vec2f.h"
7
 
17
 
8
 
18
 
9
namespace CGLA {
19
namespace CGLA {
10
 
20
 
11
	/** \brief 2D double floating point vector */
21
	/** \brief 2D double floating point vector */
12
 
22
 
13
	class Vec2d: public ArithVec2Float<double,Vec2d>
23
	class Vec2d: public ArithVec2Float<double,Vec2d>
14
	{
24
	{
15
	public:
25
	public:
16
 
26
 
17
		Vec2d() {}
27
		Vec2d() {}
18
 
28
 
19
		Vec2d(double _a,double _b): 
29
		Vec2d(double _a,double _b): 
20
			ArithVec2Float<double,Vec2d>(_a,_b) {}
30
			ArithVec2Float<double,Vec2d>(_a,_b) {}
21
 
31
 
22
		explicit Vec2d(const Vec2i& v): 
32
		explicit Vec2d(const Vec2i& v): 
23
			ArithVec2Float<double,Vec2d>(v[0],v[1]) {}
33
			ArithVec2Float<double,Vec2d>(v[0],v[1]) {}
24
 
34
 
25
		explicit Vec2d(const Vec2f& v): 
35
		explicit Vec2d(const Vec2f& v): 
26
			ArithVec2Float<double,Vec2d>(v[0],v[1]) {}
36
			ArithVec2Float<double,Vec2d>(v[0],v[1]) {}
27
 
37
 
28
		explicit Vec2d(double a): 
38
		explicit Vec2d(double a): 
29
			ArithVec2Float<double,Vec2d>(a,a) {}
39
			ArithVec2Float<double,Vec2d>(a,a) {}
30
  
40
  
31
	};
41
	};
32
 
42
 
33
}
43
}
34
#endif
44
#endif
35
 
45