#include <SketcherPrs_Factory.h>
+#include <cmath>
+
#define PI 3.1415926535897932
SketchPlugin_MultiRotation::SketchPlugin_MultiRotation()
double theCenterX, double theCenterY, double theAngle)
{
std::shared_ptr<GeomAPI_Pnt2d> aCenter(new GeomAPI_Pnt2d(theCenterX, theCenterY));
- double cosA = cos(theAngle);
- double sinA = sin(theAngle);
+ double cosA = std::cos(theAngle);
+ double sinA = std::sin(theAngle);
FeaturePtr anInitialFeature = ModelAPI_Feature::feature(theInitial);
FeaturePtr aTargetFeature = ModelAPI_Feature::feature(theTarget);
#include <GeomAPI_Dir2d.h>
#include <GeomAPI_XY.h>
+#include <cmath>
void SketchSolver_ConstraintMirror::getAttributes(
Slvs_Entity& theMirrorLine,
}
double aRad2 = anArcParams[1][0] * anArcParams[1][0] + anArcParams[1][1] * anArcParams[1][1];
double aDist2 = anArcParams[2][0] * anArcParams[2][0] + anArcParams[2][1] * anArcParams[2][1];
- if (fabs(aRad2 - aDist2) < tolerance)
+ if (std::fabs(aRad2 - aDist2) < tolerance)
return; // nothing to update (last point already on the arc)
if (aDist2 < tolerance)
return; // unable to update
- double aCoeff = sqrt(aRad2 / aDist2);
+ double aCoeff = std::sqrt(aRad2 / aDist2);
anArcParams[2][0] *= aCoeff;
anArcParams[2][1] *= aCoeff;