You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
0 B

9 years ago
#include "Vector3.hpp"
#include <assert.h>
using namespace matrix;
template class Vector<float, 3>;
9 years ago
int main()
{
Vector3f v;
v(0) = 1;
v(1) = 2;
v(2) = 3;
9 years ago
v.print();
9 years ago
assert(v(0) == 1);
assert(v(1) == 2);
assert(v(2) == 3);
9 years ago
Vector3f v2(4, 5, 6);
9 years ago
v2.print();
9 years ago
assert(v2(0) == 4);
assert(v2(1) == 5);
assert(v2(2) == 6);
9 years ago
return 0;
9 years ago
}
/* vim: set et fenc=utf-8 ff=unix sts=0 sw=4 ts=4 : */