Advertisement
mrpowhs

Untitled

Feb 9th, 2014
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.13 KB | None | 0 0
  1. // Dot product
  2. template <class T>
  3. inline T dot(const Vec3<T>& v1, const Vec3<T>& v2)
  4. {return v1[0]*v2[0] + v1[1]*v2[1] + v1[2]*v2[2];}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement