Public paste
Undefined
By: Guest | Date: Feb 18 2010 19:00 | Format: None | Expires: never | Size: 166 B | Hits: 481

  1. float GetDistance(const float *v1,const float *v2)
  2. {
  3.         #define POW2(x) ((x)*(x))
  4.         return sqrt(POW2(v1[0] - v2[0]) + POW2(v1[1] - v2[1]) + POW2(v1[2] - v2[2]));
  5.  
  6. }