Subversion Repositories gelsvn

Rev

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

Rev 206 Rev 207
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"
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
  Vec3f::Vec3f(const Vec4f& v):
21
  Vec3f::Vec3f(const Vec4f& v):
22
    ArithVec3Float<float,Vec3f>(v[0],v[1],v[2]) {}
22
    ArithVec3Float<float,Vec3f>(v[0],v[1],v[2]) {}
23
 
23
 
24
}
24
}
25
 
25