Subversion Repositories gelsvn

Rev

Rev 306 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 306 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
/** @file Vec3d.h
-
 
8
 * @brief 3D double vector class.
-
 
9
 */
-
 
10
 
1
#ifndef __CGLA_VEC3D_H__
11
#ifndef __CGLA_VEC3D_H__
2
#define __CGLA_VEC3D_H__
12
#define __CGLA_VEC3D_H__
3
 
13
 
4
#include "ArithVec.h"
14
#include "ArithVec3Float.h"
5
#include "Vec3i.h"
15
#include "Vec3i.h"
6
#include "Vec3usi.h"
16
#include "Vec3usi.h"
7
#include "Vec3f.h"
17
#include "Vec3f.h"
8
 
18
 
9
 
19
 
Line 22... Line 32...
22
 
32
 
23
		/// Construct vector
33
		/// Construct vector
24
		Vec3d(double a, double b, double c): ArithVec3Float<double,Vec3d>(a,b,c) {}
34
		Vec3d(double a, double b, double c): ArithVec3Float<double,Vec3d>(a,b,c) {}
25
 
35
 
26
		/// Construct vector where all coords = a 
36
		/// Construct vector where all coords = a 
27
		explicit Vec3d(double a): 
37
		explicit Vec3d(double a):
28
			ArithVec3Float<double,Vec3d>(a,a,a) {}
38
			ArithVec3Float<double,Vec3d>(a,a,a) {}
29
 
39
 
30
		/// Convert from int vector
40
		/// Convert from int vector
31
		explicit Vec3d(const Vec3i& v): 
41
		explicit Vec3d(const Vec3i& v): 
32
			ArithVec3Float<double,Vec3d>(v[0],v[1],v[2]) {}
42
			ArithVec3Float<double,Vec3d>(v[0],v[1],v[2]) {}