1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-07-20 12:45:50 +03:00
occt/src/gp/gp_XY.cxx
2012-03-05 19:23:40 +04:00

18 lines
390 B
C++
Executable File

// 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;
}