Subversion Repositories gelsvn

Rev

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

Rev 595 Rev 630
1
/* ----------------------------------------------------------------------- *
1
/* ----------------------------------------------------------------------- *
2
 * This file is part of GEL, http://www.imm.dtu.dk/GEL
2
 * This file is part of GEL, http://www.imm.dtu.dk/GEL
3
 * Copyright (C) the authors and DTU Informatics
3
 * Copyright (C) the authors and DTU Informatics
4
 * For license and list of authors, see ../../doc/intro.pdf
4
 * For license and list of authors, see ../../doc/intro.pdf
5
 * ----------------------------------------------------------------------- */
5
 * ----------------------------------------------------------------------- */
6
 
6
 
7
#include <algorithm>
7
#include <algorithm>
8
 
8
 
9
#include "Vec3f.h"
9
#include "Vec3f.h"
10
#include "Vec3d.h"
10
#include "Vec3d.h"
11
#include "Vec3Hf.h"
11
#include "Vec3Hf.h"
12
 
12
 
13
using namespace std;
13
using namespace std;
14
 
14
 
15
namespace CGLA 
15
namespace CGLA 
16
{
16
{
17
 
17
 
18
  Vec3f::Vec3f(const Vec3d& v):
18
  Vec3f::Vec3f(const Vec3d& v):
19
    ArithVec3Float<float,Vec3f>(static_cast<float>(v[0]), 
19
    ArithVec3Float<float,Vec3f>(static_cast<float>(v[0]), 
20
				static_cast<float>(v[1]), 
20
				static_cast<float>(v[1]), 
21
				static_cast<float>(v[2])) {}
21
				static_cast<float>(v[2])) {}
22
  
22
  
23
  Vec3f::Vec3f(const Vec4f& v):
23
  Vec3f::Vec3f(const Vec4f& v):
24
    ArithVec3Float<float,Vec3f>(v[0],v[1],v[2]) {}
24
    ArithVec3Float<float,Vec3f>(v[0],v[1],v[2]) {}
25
 
25
 
26
}
26
}
27
 
27