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.

21 lines
336 B

10 years ago
#include <assert.h>
#include <stdio.h>
10 years ago
#include "matrix.hpp"
10 years ago
using namespace matrix;
template class Vector<float, 3>;
10 years ago
int main()
{
Vector3f a(1, 0, 0);
Vector3f b(0, 1, 0);
Vector3f c = a.cross(b);
c.print();
assert (c == Vector3f(0,0,1));
return 0;
10 years ago
}
/* vim: set et fenc=utf-8 ff=unix sts=0 sw=4 ts=4 : */