Subversion Repositories gelsvn

Rev

Rev 306 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 306 Rev 595
-
 
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 <algorithm>
7
#include <algorithm>
2
 
8
 
3
#include "Vec3f.h"
9
#include "Vec3f.h"
4
#include "Vec3d.h"
10
#include "Vec3d.h"
5
#include "Vec3Hf.h"
11
#include "Vec3Hf.h"
6
 
12
 
7
using namespace std;
13
using namespace std;
8
 
14
 
9
namespace CGLA 
15
namespace CGLA 
10
{
16
{
11
 
17
 
12
  Vec3f::Vec3f(const Vec3d& v):
18
  Vec3f::Vec3f(const Vec3d& v):
13
    ArithVec3Float<float,Vec3f>(static_cast<float>(v[0]), 
19
    ArithVec3Float<float,Vec3f>(static_cast<float>(v[0]), 
14
				static_cast<float>(v[1]), 
20
				static_cast<float>(v[1]), 
15
				static_cast<float>(v[2])) {}
21
				static_cast<float>(v[2])) {}
16
  
22
  
17
  Vec3f::Vec3f(const Vec4f& v):
23
  Vec3f::Vec3f(const Vec4f& v):
18
    ArithVec3Float<float,Vec3f>(v[0],v[1],v[2]) {}
24
    ArithVec3Float<float,Vec3f>(v[0],v[1],v[2]) {}
19
 
25
 
20
}
26
}
21
 
27