Rev 324 | Blame | Compare with Previous | Last modification | View Log | RSS feed
/* ----------------------------------------------------------------------- *
* This file is part of GEL, http://www.imm.dtu.dk/GEL
* Copyright (C) the authors and DTU Informatics
* For license and list of authors, see ../../doc/intro.pdf
* @brief 2D unsigned integer vector class.
* ----------------------------------------------------------------------- */
/** @file Vec2ui.h
* @brief 2D unsigned integer vector class.
*/
#ifndef __CGLA_VEC2UI_H__
#define __CGLA_VEC2UI_H__
#include "ArithVec.h"
namespace CGLA
{
class Vec2f;
/** \brief 2D Integer vector. */
class Vec2ui: public ArithVec<unsigned int,Vec2ui,2>
{
public:
/// Construct 0 vector
Vec2ui() {}
/// Construct 2D int vector
Vec2ui(unsigned int _a)
: ArithVec<unsigned int,Vec2ui,2>(_a,_a)
{}
/// Construct 2D int vector
Vec2ui(unsigned int _a, unsigned int _b)
: ArithVec<unsigned int,Vec2ui,2>(_a,_b)
{}
/// Convert from 2D float vector
explicit Vec2ui(const Vec2f& v);
};
}
#endif