예제 #1
0
//********************************************
// Equals
//  Determines if two vectors are equal
//  within a tolerence (squared distance).
//********************************************
int
CVector3d::Equals(const CVector3d& v, double tolerence) const
{
  CVector3d diff = *this - v;

  return diff.LengthSquared() <= tolerence;
}