X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_XYZ.cpp;h=37ba3aa9faa60d8d44e7237fcb3881dce33a17a8;hb=d22fc665c79c31c9eea0625e04c2e941adfdf7be;hp=f413005fd0aebc80ab6744fef5787a82920b4a85;hpb=8a9a3ae0793503abf21a2c1b0a08d47d85449fc4;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_XYZ.cpp b/src/GeomAPI/GeomAPI_XYZ.cpp index f413005fd..37ba3aa9f 100644 --- a/src/GeomAPI/GeomAPI_XYZ.cpp +++ b/src/GeomAPI/GeomAPI_XYZ.cpp @@ -9,8 +9,9 @@ #define MY_XYZ static_cast(myImpl) GeomAPI_XYZ::GeomAPI_XYZ(const double theX, const double theY, const double theZ) - : GeomAPI_Interface(new gp_XYZ(theX, theY, theZ)) -{} + : GeomAPI_Interface(new gp_XYZ(theX, theY, theZ)) +{ +} double GeomAPI_XYZ::x() const { @@ -43,25 +44,25 @@ void GeomAPI_XYZ::setZ(const double theZ) } const boost::shared_ptr GeomAPI_XYZ::added( - const boost::shared_ptr& theArg) + const boost::shared_ptr& theArg) { boost::shared_ptr aResult(new GeomAPI_XYZ(MY_XYZ->X() + theArg->x(), - MY_XYZ->Y() + theArg->y(), MY_XYZ->Z() + theArg->z())); + MY_XYZ->Y() + theArg->y(), MY_XYZ->Z() + theArg->z())); return aResult; } const boost::shared_ptr GeomAPI_XYZ::decreased( - const boost::shared_ptr& theArg) + const boost::shared_ptr& theArg) { boost::shared_ptr aResult(new GeomAPI_XYZ(MY_XYZ->X() - theArg->x(), - MY_XYZ->Y() - theArg->y(), MY_XYZ->Z() - theArg->z())); + MY_XYZ->Y() - theArg->y(), MY_XYZ->Z() - theArg->z())); return aResult; } const boost::shared_ptr GeomAPI_XYZ::multiplied(const double theArg) { boost::shared_ptr aResult(new GeomAPI_XYZ(MY_XYZ->X() * theArg, - MY_XYZ->Y() * theArg, MY_XYZ->Z() * theArg)); + MY_XYZ->Y() * theArg, MY_XYZ->Z() * theArg)); return aResult; } @@ -70,7 +71,8 @@ double GeomAPI_XYZ::dot(const boost::shared_ptr& theArg) const return MY_XYZ->Dot(theArg->impl()); } -const boost::shared_ptr GeomAPI_XYZ::cross(const boost::shared_ptr& theArg) const +const boost::shared_ptr GeomAPI_XYZ::cross( + const boost::shared_ptr& theArg) const { gp_XYZ aResult = MY_XYZ->Crossed(theArg->impl()); return boost::shared_ptr(new GeomAPI_XYZ(aResult.X(), aResult.Y(), aResult.Z()));