return std::shared_ptr<GeomAPI_XYZ>(new GeomAPI_XYZ(aResult.X(), aResult.Y(), aResult.Z()));
}
+double GeomAPI_Dir::angle(const std::shared_ptr<GeomAPI_Dir>& theArg) const
+{
+ return MY_DIR->Angle(theArg->impl<gp_Dir>());
+}
+
double dot(const std::shared_ptr<GeomAPI_Dir>& theArg) const;
/// result is a cross product of two directions
const std::shared_ptr<GeomAPI_XYZ> cross(const std::shared_ptr<GeomAPI_Dir>& theArg) const;
+
+ /// calculates angle between two directions
+ double angle(const std::shared_ptr<GeomAPI_Dir>& theArg) const;
};
#endif
return MY_DIR->XY().Crossed(theArg->impl<gp_Dir2d>().XY());
}
+double GeomAPI_Dir2d::angle(const std::shared_ptr<GeomAPI_Dir2d>& theArg) const
+{
+ return MY_DIR->Angle(theArg->impl<gp_Dir2d>());
+}
double dot(const std::shared_ptr<GeomAPI_Dir2d>& theArg) const;
/// result is a cross product of two directions
double cross(const std::shared_ptr<GeomAPI_Dir2d>& theArg) const;
+
+ /// calculates angle between two directions
+ double angle(const std::shared_ptr<GeomAPI_Dir2d>& theArg) const;
};
#endif