void RS_MText::rotate(const RS_Vector& center, const double& angle) { RS_Vector angleVector(angle); RS_EntityContainer::rotate(center, angleVector); data.insertionPoint.rotate(center, angleVector); data.angle = RS_Math::correctAngle(data.angle+angle); // update(); }
void RS_Image::rotate(const RS_Vector& center, const double& angle) { RS_Vector angleVector(angle); data.insertionPoint.rotate(center, angleVector); data.uVector.rotate(angleVector); data.vVector.rotate(angleVector); calculateBorders(); }
//rotation void RS_Solid::rotate(const RS_Vector& center, const double& angle) { RS_Vector angleVector(angle); for (int i=0; i<4; ++i) { data.corner[i].rotate(center, angleVector); } calculateBorders(); }
/** * Rotates all vectors around the given center by the given angle. */ void RS_VectorSolutions::rotate(const RS_Vector& center, const double& ang) { RS_Vector angleVector(ang); for (int i=0; i<vector.size(); i++) { if (vector[i].valid) { vector[i].rotate(center,angleVector); } } }
/** * Rotates all vectors around (0,0) by the given angle. */ void RS_VectorSolutions::rotate(double ang) { RS_Vector angleVector(ang); for (auto& vp: vector) { if (vp.valid) { vp.rotate(angleVector); } } }
void RS_DimLinear::rotate(const RS_Vector& center, const double& angle) { RS_Vector angleVector(angle); RS_Dimension::rotate(center, angleVector); edata.extensionPoint1.rotate(center, angleVector); edata.extensionPoint2.rotate(center, angleVector); edata.angle = RS_Math::correctAngle(edata.angle+angle); update(); }
void RS_EntityContainer::rotate(const RS_Vector& center, const double& angle) { RS_Vector angleVector(angle); for(auto e: entities){ e->rotate(center, angleVector); } if (autoUpdateBorders) { calculateBorders(); } }
void RS_Dimension::rotate(const RS_Vector& center, const double& angle) { RS_Vector angleVector(angle); data.definitionPoint.rotate(center, angleVector); data.middleOfText.rotate(center, angleVector); data.angle = RS_Math::correctAngle(data.angle+angle); }
void RS_ConstructionLine::rotate(const RS_Vector& center, const double& angle) { RS_Vector angleVector(angle); data.point1.rotate(center, angleVector); data.point2.rotate(center, angleVector); //calculateBorders(); }