Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
+46
@@ -0,0 +1,46 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* Class Geometry
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
// Own
|
||||
#include "situation_map_export.h"
|
||||
|
||||
|
||||
// Qt
|
||||
#include <QPointF>
|
||||
#include <QList>
|
||||
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
namespace SituationMap
|
||||
{
|
||||
|
||||
class SITUATIONMAP_EXPORT Geometry final
|
||||
{
|
||||
public:
|
||||
Geometry() = default;
|
||||
~Geometry() = default;
|
||||
|
||||
static QList<QPointF> createCircle(const QPointF ¢er,
|
||||
qreal radius,
|
||||
int steps = 72); // 72 -> 5° Schritte
|
||||
|
||||
static QList<QPointF> createArcSegment(const QPointF ¢er, qreal radius,
|
||||
double startAngle_degree,
|
||||
double angleOffset_clockwise_degree,
|
||||
int stepsPer360 = 72); // 72 -> 5° Schritte
|
||||
|
||||
static const int minNumberOfVerticesPerCircle = 10;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
} // namespace SituationMap
|
||||
|
||||
Reference in new issue
Block a user