Subversion Repositories gelsvn

Rev

Rev 206 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 206 Rev 306
Line 1... Line 1...
1
#include <algorithm>
1
#include <algorithm>
2
 
2
 
3
#include "Vec3f.h"
3
#include "Vec3f.h"
4
#include "Vec3d.h"
4
#include "Vec3d.h"
5
#include "Vec3Hf.h"
5
#include "Vec3Hf.h"
6
#include "Quaternion.h"
-
 
7
 
6
 
8
using namespace std;
7
using namespace std;
9
 
8
 
10
namespace CGLA 
9
namespace CGLA 
11
{
10
{
12
 
11
 
13
  Vec3f::Vec3f(const Quaternion& q):
-
 
14
    ArithVec3Float<float,Vec3f>(q.qv[0],q.qv[1],q.qv[2]) {}
-
 
15
 
-
 
16
  Vec3f::Vec3f(const Vec3d& v):
12
  Vec3f::Vec3f(const Vec3d& v):
17
    ArithVec3Float<float,Vec3f>(static_cast<float>(v[0]), 
13
    ArithVec3Float<float,Vec3f>(static_cast<float>(v[0]), 
18
				static_cast<float>(v[1]), 
14
				static_cast<float>(v[1]), 
19
				static_cast<float>(v[2])) {}
15
				static_cast<float>(v[2])) {}
20
  
16