Subversion Repositories gelsvn

Rev

Rev 2 | Rev 306 | Go to most recent revision | Details | Compare with Previous | 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
 
206 jrf 10
namespace CGLA 
11
{
2 bj 12
 
206 jrf 13
  Vec3f::Vec3f(const Quaternion& q):
14
    ArithVec3Float<float,Vec3f>(q.qv[0],q.qv[1],q.qv[2]) {}
2 bj 15
 
206 jrf 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
  Vec3f::Vec3f(const Vec4f& v):
22
    ArithVec3Float<float,Vec3f>(v[0],v[1],v[2]) {}
2 bj 23
 
24
}