X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Dir.cpp;h=cbd8880a0977d0f4719a437897fcebbe47d3b591;hb=b5893b0a30fac08134c24de4565cb513a43affa6;hp=3174cea0ee8f6fe056534d21ccac6885a0116e69;hpb=3afc257344780d0447d4fca3f26c91d932d0a0b0;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Dir.cpp b/src/GeomAPI/GeomAPI_Dir.cpp index 3174cea0e..cbd8880a0 100644 --- a/src/GeomAPI/GeomAPI_Dir.cpp +++ b/src/GeomAPI/GeomAPI_Dir.cpp @@ -41,6 +41,11 @@ const std::shared_ptr GeomAPI_Dir::xyz() return std::shared_ptr(new GeomAPI_XYZ(MY_DIR->X(), MY_DIR->Y(), MY_DIR->Z())); } +void GeomAPI_Dir::reverse() +{ + MY_DIR->Reverse(); +} + double GeomAPI_Dir::dot(const std::shared_ptr& theArg) const { return MY_DIR->Dot(theArg->impl()); @@ -58,3 +63,8 @@ double GeomAPI_Dir::angle(const std::shared_ptr& theArg) const return MY_DIR->Angle(theArg->impl()); } +bool GeomAPI_Dir::isParallel(const std::shared_ptr theDir, + const double theTolerance) const +{ + return MY_DIR->IsParallel(theDir->impl(), theTolerance) == Standard_True; +}