Subversion Repositories gelsvn

Rev

Rev 89 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 89 Rev 595
Line -... Line 1...
-
 
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
/**
-
 
8
 * @file Vec3i.h
-
 
9
 * 3D integer vector class.
-
 
10
 */
-
 
11
 
1
#ifndef __CGLA_VEC3I_H__
12
#ifndef __CGLA_VEC3I_H__
2
#define __CGLA_VEC3I_H__
13
#define __CGLA_VEC3I_H__
3
 
14
 
4
#include "ArithVec3Int.h"
15
#include "ArithVec3Int.h"
5
 
16
 
6
namespace CGLA 
17
namespace CGLA 
7
{
18
{
8
	class Vec3f;
19
	class Vec3f;
-
 
20
	class Vec3d;
9
	class Vec3uc;
21
	class Vec3uc;
10
	class Vec3usi;
22
	class Vec3usi;
11
 
23
 
12
	/** \brief 3D integer vector. 
24
	/** \brief 3D integer vector. 
13
 
25
 
Line 28... Line 40...
28
		explicit Vec3i(int a): ArithVec3Int<int,Vec3i>(a,a,a) {}
40
		explicit Vec3i(int a): ArithVec3Int<int,Vec3i>(a,a,a) {}
29
	
41
	
30
		/// Construct from a Vec3f.
42
		/// Construct from a Vec3f.
31
		explicit Vec3i(const Vec3f& v);
43
		explicit Vec3i(const Vec3f& v);
32
 
44
 
-
 
45
		/// Construct from a Vec3f.
-
 
46
		explicit Vec3i(const Vec3d& v);
-
 
47
 
33
		/// Construct from a Vec3uc.
48
		/// Construct from a Vec3uc.
34
		explicit Vec3i(const Vec3uc& v);
49
		explicit Vec3i(const Vec3uc& v);
35
 
50
 
36
		/// Construct from a Vec3usi.
51
		/// Construct from a Vec3usi.
37
		explicit Vec3i(const Vec3usi& v);
52
		explicit Vec3i(const Vec3usi& v);