libvmath4

diff src/quat.cc @ 0:4d6383605d64

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 05 Oct 2014 04:00:05 +0300
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/quat.cc	Sun Oct 05 04:00:05 2014 +0300
     1.3 @@ -0,0 +1,12 @@
     1.4 +#include "quat.h"
     1.5 +#include "vector.h"
     1.6 +
     1.7 +using namespace vmath;
     1.8 +
     1.9 +Quat::Quat(const Vector4 &v)
    1.10 +{
    1.11 +	x = v.x;
    1.12 +	y = v.y;
    1.13 +	z = v.z;
    1.14 +	w = v.w;
    1.15 +}