Salome HOME
Create Presentation for rigid constraint
[modules/shaper.git] / src / GeomAPI / GeomAPI_XYZ.h
index 85c60779ef8cb7fa3cbd9168973e1d81c7394cde..eadee91a3e0cb7154d7758e02fc93a86569cb912 100644 (file)
@@ -2,8 +2,8 @@
 // Created:     23 Apr 2014
 // Author:      Mikhail PONIKAROV
 
-#ifndef GeomAPI_XYZ_HeaderFile
-#define GeomAPI_XYZ_HeaderFile
+#ifndef GeomAPI_XYZ_H_
+#define GeomAPI_XYZ_H_
 
 #include <GeomAPI_Interface.h>
 #include <boost/shared_ptr.hpp>
@@ -13,9 +13,9 @@
  * \brief 3 coordinates: they may represent vector or point or something else
  */
 
-class GEOMAPI_EXPORT GeomAPI_XYZ: public GeomAPI_Interface
+class GEOMAPI_EXPORT GeomAPI_XYZ : public GeomAPI_Interface
 {
-public:
+ public:
   /// Creation by coordinates
   GeomAPI_XYZ(const double theX, const double theY, const double theZ);
 
@@ -35,6 +35,8 @@ public:
 
   /// result is sum of coordinates of this and the given argument
   const boost::shared_ptr<GeomAPI_XYZ> added(const boost::shared_ptr<GeomAPI_XYZ>& theArg);
+  /// result is difference between coordinates of this and the given argument
+  const boost::shared_ptr<GeomAPI_XYZ> decreased(const boost::shared_ptr<GeomAPI_XYZ>& theArg);
   /// result is coordinates multiplied by the argument
   const boost::shared_ptr<GeomAPI_XYZ> multiplied(const double theArg);