Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
+35
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* @RDE_HEADER@
|
||||
* Generates a postion for a player
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Hanna E. Rathje, SLTE, 2022-03-29
|
||||
*/
|
||||
#pragma once
|
||||
#include <NGLLogger/INGLLogger.h>
|
||||
|
||||
#include <QRectF>
|
||||
#include <QPair>
|
||||
/*
|
||||
* Class only works with Relative Positions!!!!
|
||||
*/
|
||||
|
||||
namespace WlsRandomPositions
|
||||
{
|
||||
|
||||
class PositionHelper
|
||||
{
|
||||
public:
|
||||
PositionHelper(const QPointF &topLeft, const QPointF &bottomRight, double heightMin, double heightMax);
|
||||
|
||||
static QPair<QPointF, double> randPos(); // lon/lat, height
|
||||
static QPair<QPointF, double> randPos(const QPointF &oldPos, double maxDistance); // lon/lat, height
|
||||
|
||||
void set(const QPointF &topLeft, const QPointF &bottomRight, double heightMin, double heightMax);
|
||||
|
||||
private:
|
||||
NGL::INGLLogger &m_logger;
|
||||
};
|
||||
|
||||
} // Namespace WlsRandomPositions
|
||||
Reference in new issue
Block a user