2014-02-18 15:28:28 +11:00
|
|
|
|
|
|
|
#include "point.hpp"
|
|
|
|
|
|
|
|
#include "debug.hpp"
|
|
|
|
#include "types.hpp"
|
|
|
|
|
|
|
|
using namespace util;
|
|
|
|
|
|
|
|
int
|
|
|
|
main (int, char**) {
|
2014-12-15 20:10:56 +11:00
|
|
|
const point3f p(0.f, 1.f, 2.f);
|
|
|
|
const point2f q = p.redim<2> ();
|
2014-02-18 15:28:28 +11:00
|
|
|
|
|
|
|
CHECK_EQ (q.data[0], p.data[0]);
|
|
|
|
CHECK_EQ (q.data[1], p.data[1]);
|
|
|
|
}
|