Subversion Repositories gelsvn

Rev

Rev 2 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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