+void SketchAPI_Rectangle::setByCenterAndCornerCoords(
+ double theCenterX, double theCenterY,
+ double theCornerX, double theCornerY
+) {
+ fillAttribute("RectangleTypeCentered", type());
+ fillAttribute(centerPoint(), theCenterX, theCenterY);
+ fillAttribute(cornerPoint(), theCornerX, theCornerY);
+ execute();
+}
+
+void SketchAPI_Rectangle::setByCenterAndCornerPoints(
+ const std::shared_ptr<GeomAPI_Pnt2d> & theCenterPoint,
+ const std::shared_ptr<GeomAPI_Pnt2d> & theCornerPoint
+) {
+ fillAttribute("RectangleTypeCentered", type());
+ fillAttribute(theCenterPoint, centerPoint());
+ fillAttribute(theCornerPoint, cornerPoint());
+ execute();
+}
+