Subversion Repositories gelsvn

Rev

Rev 317 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 317 Rev 320
1
#ifndef __CGLA_VEC2I_H__
1
#ifndef __CGLA_VEC2I_H__
2
#define __CGLA_VEC2I_H__
2
#define __CGLA_VEC2I_H__
3
 
3
 
4
#include "ArithVec.h"
4
#include "ArithVec.h"
5
 
5
 
6
namespace CGLA {
6
namespace CGLA {
7
	class Vec2f;
7
	class Vec2f;
8
 
8
 
9
	/** \brief 2D Integer vector. */
9
	/** \brief 2D Integer vector. */
10
	
10
	
11
	class Vec2i: public ArithVec<int,Vec2i,2>
11
	class Vec2i: public ArithVec<int,Vec2i,2>
12
	{
12
	{
13
	public:
13
	public:
14
		
14
		
15
		/// Construct 0 vector
15
		/// Construct 0 vector
16
		Vec2i() {}
16
		Vec2i() {}
17
 
17
 
18
		/// Construct 2D int vector
18
		/// Construct 2D int vector
19
		Vec2i(int _a,int _b): ArithVec<int,Vec2i,2>(_a,_b) {}
19
		Vec2i(int _a,int _b): ArithVec<int,Vec2i,2>(_a,_b) {}
20
 
20
 
21
		/// Construct a 2D integer vector with two identical coordinates.
21
		/// Construct a 2D integer vector with two identical coordinates.
22
		//explicit Vec2i(int a): ArithVec2Int<int,Vec3i>(a,a) {}
-
 
23
		explicit Vec2i(int a): ArithVec<int,Vec2i,2>(a,a) {}
22
		explicit Vec2i(int a): ArithVec<int,Vec2i,2>(a,a) {}
24
 
23
 
25
		/// Convert from 2D float vector
24
		/// Convert from 2D float vector
26
		explicit Vec2i(const Vec2f& v);
25
		explicit Vec2i(const Vec2f& v);
27
  
26
  
28
	};
27
	};
29
 
28
 
30
}
29
}
31
#endif
30
#endif
32
 
31