Advertisement
Guest User

Untitled

a guest
Feb 6th, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. // Transform the vector, skipping the translation
  2.   VectorT<T> TransformDirection(const VectorT<T> &v) const
  3.   {
  4.     return VectorT<T>(
  5.         v.x * m[_M44(0,0)] + v.y * m[_M44(0,1)] + v.z * m[_M44(0,2)],
  6.         v.x * m[_M44(1,0)] + v.y * m[_M44(1,1)] + v.z * m[_M44(1,2)],
  7.         v.x * m[_M44(2,0)] + v.y * m[_M44(2,1)] + v.z * m[_M44(2,2)]);
  8.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement