blob: 48ab544a02186dfe7d1a0ec7ac24d98af9dbdb0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// File gp_XYZ.cxx, JCV 05/12/90
#include <gp_XYZ.ixx>
Standard_Boolean gp_XYZ::IsEqual (const gp_XYZ& 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;
val = z - Other.z;
if (val < 0) val = - val;
if (val > Tolerance) return Standard_False;
return Standard_True;
}
|