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 Vec3f.h
-
 
8
 * @brief 3D float vector class.
-
 
9
 */
-
 
10
 
1
#ifndef __CGLA_VEC3F_H__
11
#ifndef __CGLA_VEC3F_H__
2
#define __CGLA_VEC3F_H__
12
#define __CGLA_VEC3F_H__
3
 
13
 
4
#include "ArithVec3Float.h"
14
#include "ArithVec3Float.h"
5
#include "Vec3i.h"
15
#include "Vec3i.h"
Line 26... Line 36...
26
		/// Construct a 3D float vector.
36
		/// Construct a 3D float vector.
27
		Vec3f(float a, float b, float c): 
37
		Vec3f(float a, float b, float c): 
28
			ArithVec3Float<float,Vec3f>(a,b,c) {}
38
			ArithVec3Float<float,Vec3f>(a,b,c) {}
29
 
39
 
30
		/// Construct a vector with 3 identical coordinates.
40
		/// Construct a vector with 3 identical coordinates.
31
		explicit Vec3f(float a): 
41
		explicit Vec3f(float a):
32
			ArithVec3Float<float,Vec3f>(a,a,a) {}
42
			ArithVec3Float<float,Vec3f>(a,a,a) {}
33
 
43
 
34
		/// Construct from a 3D int vector
44
		/// Construct from a 3D int vector
35
		explicit Vec3f(const Vec3i& v): 
45
		explicit Vec3f(const Vec3i& v): 
36
			ArithVec3Float<float,Vec3f>(v[0],v[1],v[2]) {}
46
			ArithVec3Float<float,Vec3f>(v[0],v[1],v[2]) {}