| 13 * GNU General Public License for more details. |
13 * GNU General Public License for more details. |
| 14 * |
14 * |
| 15 * You should have received a copy of the GNU General Public License |
15 * You should have received a copy of the GNU General Public License |
| 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 */ |
17 */ |
| |
18 |
| 18 #pragma once |
19 #pragma once |
| 19 #include "../main.h" |
20 #include "../main.h" |
| |
21 |
| |
22 enum RotationPoint |
| |
23 { |
| |
24 ObjectOrigin, |
| |
25 WorldOrigin, |
| |
26 CustomPoint, |
| |
27 }; |
| 20 |
28 |
| 21 double ldrawsin(double angle); |
29 double ldrawsin(double angle); |
| 22 double ldrawcos(double angle); |
30 double ldrawcos(double angle); |
| 23 QPointF pointOnLDrawCircumference(int segment, int divisions); |
31 QPointF pointOnLDrawCircumference(int segment, int divisions); |
| 24 QVector<QLineF> makeCircle(int segments, int divisions, double radius); |
32 QVector<QLineF> makeCircle(int segments, int divisions, double radius); |
| 25 qreal distanceFromPointToRectangle(const QPointF& point, const QRectF& rectangle); |
33 qreal distanceFromPointToRectangle(const QPointF& point, const QRectF& rectangle); |
| |
34 void rotateObjects(int l, int m, int n, double angle, const QVector<LDObject*>& objects); |
| |
35 Vertex getRotationPoint(const QVector<LDObject*>& objs); |
| |
36 void rotateVertex(Vertex& vertex, const Vertex& rotationPoint, const Matrix& transformationMatrix); |