Salome HOME
Added new geometrical objects
[modules/shaper.git] / src / GeomAPI / GeomAPI_XYZ.h
index 6042428e5e15c068ae2e83e6578ea97ed944cfca..85c60779ef8cb7fa3cbd9168973e1d81c7394cde 100644 (file)
@@ -37,6 +37,14 @@ public:
   const boost::shared_ptr<GeomAPI_XYZ> added(const boost::shared_ptr<GeomAPI_XYZ>& theArg);
   /// result is coordinates multiplied by the argument
   const boost::shared_ptr<GeomAPI_XYZ> multiplied(const double theArg);
+
+  /// result is a scalar product of two triplets
+  double dot(const boost::shared_ptr<GeomAPI_XYZ>& theArg) const;
+  /// result is a cross product of two triplets
+  const boost::shared_ptr<GeomAPI_XYZ> cross(const boost::shared_ptr<GeomAPI_XYZ>& theArg) const;
+
+  /// Distance between two triplets
+  double distance(const boost::shared_ptr<GeomAPI_XYZ>& theOther) const;
 };
 
 #endif