Documentation of MARTY
A Modern ARtificial Theoretical phYsicist
curvature.h
Go to the documentation of this file.
1 // This file is part of MARTY.
2 //
3 // MARTY is free software: you can redistribute it and/or modify
4 // it under the terms of the GNU General Public License as published by
5 // the Free Software Foundation, either version 3 of the License, or
6 // (at your option) any later version.
7 //
8 // MARTY is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License
14 // along with MARTY. If not, see <https://www.gnu.org/licenses/>.
15 
23 #ifndef CURVATURE_H
24 #define CURVATURE_H
25 
26 class QPainterPath;
27 
28 namespace curvature {
29 
30 double getTotalLength(double curvature,
31  double length);
32 
33 void applyCurvature(QPainterPath& path,
34  double curvature,
35  double length);
36 
37 }
38 
39 #endif // CURVATURE_H
Definition: curvature.cpp:21