Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 21st, 2010 | Syntax: None | Size: 0.17 KB | Hits: 113 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  1.         Quaternion vecQuat, resQuat;
  2.         vecQuat.x = vn.x;
  3.         vecQuat.y = vn.y;
  4.         vecQuat.z = vn.z;
  5.         vecQuat.w = 0.0f;
  6.  
  7.         resQuat = vecQuat * getConjugate();
  8.         resQuat = *this * resQuat;