summaryrefslogtreecommitdiff
path: root/src/gp/gp_XY.cxx
blob: 4a3a9d0b99dccef26950871a21e31821e1c27bac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// File gp_XY.cxx, JCV 08/01/91

#include <gp_XY.ixx>

Standard_Boolean gp_XY::IsEqual (const gp_XY& Other,
				 const Standard_Real Tolerance) const
{
  Standard_Real val;
  val = x - Other.x;
  if (val < 0) val = - val;
  if (val > Tolerance) return Standard_False;
  val = y - Other.y;
  if (val < 0) val = - val;
  if (val > Tolerance) return Standard_False;
  return Standard_True;
}