Subversion Repositories gelsvn

Rev

Rev 206 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 bj 1
#include <algorithm>
2
 
3
#include "Vec3f.h"
4
#include "Vec3d.h"
5
#include "Vec3Hf.h"
6
#include "Quaternion.h"
7
 
8
using namespace std;
9
 
10
namespace CGLA {
11
 
12
 
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):
17
		ArithVec3Float<float,Vec3f>(static_cast<float>(v[0]), 
18
																static_cast<float>(v[1]), 
19
																static_cast<float>(v[2])) {}
20
 
21
 
22
 
23
 
24
}