Subversion Repositories gelsvn

Rev

Rev 321 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 321 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
 
1
#include "Vec3i.h"
7
#include "Vec3i.h"
2
#include "Vec3f.h"
8
#include "Vec3f.h"
-
 
9
#include "Vec3d.h"
3
#include "Vec3uc.h"
10
#include "Vec3uc.h"
4
 
11
 
5
namespace CGLA {
12
namespace CGLA {
6
 
13
 
7
	Vec3i::Vec3i(const Vec3f& v):
14
	Vec3i::Vec3i(const Vec3f& v):
8
		ArithVec3Int<int,Vec3i>(int(floor(v[0])), 
15
    ArithVec3Int<int,Vec3i>(int(floor(v[0])),
9
														int(floor(v[1])), 
16
                            int(floor(v[1])),
10
														int(floor(v[2]))) {}
17
                            int(floor(v[2]))) {}
11
 
18
 
-
 
19
	Vec3i::Vec3i(const Vec3d& v):
-
 
20
    ArithVec3Int<int,Vec3i>(int(floor(v[0])),
-
 
21
                            int(floor(v[1])),
-
 
22
                            int(floor(v[2]))) {}
-
 
23
 
12
	Vec3i::Vec3i(const Vec3uc& v): 
24
	Vec3i::Vec3i(const Vec3uc& v): 
13
		ArithVec3Int<int,Vec3i>(v[0],v[1],v[2]) {}
25
		ArithVec3Int<int,Vec3i>(v[0],v[1],v[2]) {}
14
 
26
 
15
	Vec3i::Vec3i(const Vec3usi& v): 
27
	Vec3i::Vec3i(const Vec3usi& v): 
16
		ArithVec3Int<int,Vec3i>(v[0],v[1],v[2]) {}
28
		ArithVec3Int<int,Vec3i>(v[0],v[1],v[2]) {}