X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Pnt.cpp;h=9138365cc1ec6c0fc5bc1ebe7986794d282a3c3b;hb=8476d5e088f7b1b5a414fa5e33ce99d6131929eb;hp=29fe933a668f87ddfab4985fbf3ff1b910e12c6a;hpb=0e81819f07355dfbaf79fed0fd8e649900f2af40;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Pnt.cpp b/src/GeomAPI/GeomAPI_Pnt.cpp index 29fe933a6..9138365cc 100644 --- a/src/GeomAPI/GeomAPI_Pnt.cpp +++ b/src/GeomAPI/GeomAPI_Pnt.cpp @@ -14,7 +14,7 @@ #include #include -#define MY_PNT static_cast(myImpl) +#define MY_PNT implPtr() GeomAPI_Pnt::GeomAPI_Pnt(const double theX, const double theY, const double theZ) : GeomAPI_Interface(new gp_Pnt(theX, theY, theZ)) @@ -66,6 +66,11 @@ double GeomAPI_Pnt::distance(const std::shared_ptr& theOther) const return MY_PNT->Distance(theOther->impl()); } +bool GeomAPI_Pnt::isEqual(const std::shared_ptr& theOther) const +{ + return distance(theOther) < Precision::Confusion(); +} + std::shared_ptr GeomAPI_Pnt::to2D(const std::shared_ptr& theOrigin, const std::shared_ptr& theDirX, const std::shared_ptr& theDirY) {