Skip to content

Commit

Permalink
cleaning continues
Browse files Browse the repository at this point in the history
  • Loading branch information
ssloy committed Jan 26, 2015
1 parent 14f20a1 commit 08b149e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions geometry.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include "geometry.h"

template <> template <> vec<3,int> ::vec(const vec<3,float> &v) : x(int(v.x+.5)),y(int(v.y+.5)),z(int(v.z+.5)) {}
template <> template <> vec<3,float>::vec(const vec<3,int> &v) : x(v.x),y(v.y),z(v.z) {}
template <> template <> vec<2,int> ::vec(const vec<2,float> &v) : x(int(v.x+.5)),y(int(v.y+.5)) {}
template <> template <> vec<2,float>::vec(const vec<2,int> &v) : x(v.x),y(v.y) {}

0 comments on commit 08b149e

Please sign in to comment.