Subversion Repositories gelsvn

Rev

Rev 2 | Rev 306 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

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