Automated Release Preparation

This commit is contained in:
Jan Schuffenhauer
2020-01-16 12:52:25 +01:00
parent d60796ccae
commit b055c0b922
90 changed files with 722 additions and 741 deletions

View File

@@ -1,8 +1,8 @@
#include "IntelliColorPicker.h"
IntelliColorPicker::IntelliColorPicker(){
firstColor = {255,0,0,255};
secondColor = {0,255,255,255};
firstColor = QColor(255,0,0,255);
secondColor = QColor(0,255,255,255);
}
IntelliColorPicker::~IntelliColorPicker(){

View File

@@ -113,7 +113,7 @@ std::vector<Triangle> IntelliTriangulation::calculateTriangles(std::vector<QPoin
return Triangles;
}
bool IntelliTriangulation::isInPolygon(std::vector<Triangle> &triangles, QPoint &point){
bool IntelliTriangulation::isInPolygon(const std::vector<Triangle> &triangles, QPoint &point){
for(auto triangle : triangles) {
if(IntelliTriangulation::isInTriangle(triangle, point)) {
return true;

View File

@@ -60,7 +60,7 @@ std::vector<Triangle> calculateTriangles(std::vector<QPoint> polyPoints);
* \param point - The point to checl, if it lies in the polygon.
* \return Returns true if the point lies in the üpolygon, otherwise false.
*/
bool isInPolygon(std::vector<Triangle> &triangles, QPoint &point);
bool isInPolygon(const std::vector<Triangle> &triangles, QPoint &point);
}
#endif