Subversion Repositories gelsvn

Rev

Rev 595 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
595 jab 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
 * @brief 2D unsigned integer vector class.
6
 * ----------------------------------------------------------------------- */
7
 
8
/** @file Vec2ui.h
9
 * @brief 2D unsigned integer vector class.
10
 */
11
 
324 jab 12
#ifndef __CGLA_VEC2UI_H__
13
#define __CGLA_VEC2UI_H__
14
 
15
#include "ArithVec.h"
16
 
17
namespace CGLA 
18
{
19
	class Vec2f;
20
 
21
	/** \brief 2D Integer vector. */
22
 
23
	class Vec2ui: public ArithVec<unsigned int,Vec2ui,2>
24
	{
25
	public:
26
 
27
		/// Construct 0 vector
28
		Vec2ui() {}
29
 
30
		/// Construct 2D int vector
31
		Vec2ui(unsigned int _a)
32
		  : ArithVec<unsigned int,Vec2ui,2>(_a,_a) 
33
		{}
34
 
35
		/// Construct 2D int vector
36
		Vec2ui(unsigned int _a, unsigned int _b)
37
		  : ArithVec<unsigned int,Vec2ui,2>(_a,_b) 
38
		{}
39
 
40
		/// Convert from 2D float vector
41
		explicit Vec2ui(const Vec2f& v);
42
 
43
	};
44
}
45
#endif