graphene

view src/gmath/vector.cc @ 3:d71b4e899e08

minimal matrix and vec4
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 25 Jul 2015 05:52:39 +0300
parents
children d30e24132b6e
line source
1 #include "vec.h"
3 namespace gph {
5 Vector3::Vector3(const Vector4 &v)
6 : x(v.x), y(v.y), z(v.z)
7 {
8 }
10 Vector4::Vector4(const Vector3 &v)
11 : x(v.x), y(v.y), z(v.z), w(1.0f)
12 {
13 }
15 } // namespace gph