vector_gen.cpp 796 Bytes
Newer Older
Sylvain Thery's avatar
Sylvain Thery committed
1 2
#include <iostream>

3 4
#define CGOGN_NO_STATIC_ASSERT 1
#include "Geometry/vector_gen.h"
Sylvain Thery's avatar
Sylvain Thery committed
5 6 7

using namespace CGoGN;

8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
template class Geom::Vector<2, short>;
template class Geom::Vector<2, float>;
template class Geom::Vector<2, double>;

template class Geom::Vector<3, short>;
template class Geom::Vector<3, float>;
template class Geom::Vector<3, double>;

template class Geom::Vector<4, short>;
template class Geom::Vector<4, float>;
template class Geom::Vector<4, double>;

template class Geom::Vector<11, short>;
template class Geom::Vector<11, float>;
template class Geom::Vector<11, double>;
Sylvain Thery's avatar
Sylvain Thery committed
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38

int test_vector()
{
	Geom::Vec3f v1(3.0f,4.0f,5.0f);
	Geom::Vec3f v2(13.0f,14.0f,15.0f);

	Geom::Vec3f v3 = v1+v2;
	Geom::Vec3f v4 = v1^v2;
	float sc = v1*v2;

	v1 *= 10.0f;
	v2 *= 100.0f;
	
	return 0;
}