Subversion Repositories gelsvn

Rev

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