blob: 045a9702a030df985121184f2269ad04b6d7f10c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef STAR_H
#define STAR_H
#include <QtCore/qglobal.h>
#include <QtGui/QVector2D>
class Star
{
public:
Star();
const void calcXY();
qreal m_theta; // position auf der ellipse
// qreal m_velTheta; // angular velocity
qreal m_angle; // Schräglage der Ellipse
qreal m_a; // kleine halbachse
qreal m_b; // große halbachse
// qreal m_temp; // star temperature
// qreal m_mag; // brightness;
QVector2D m_center; // center of the elliptical orbit
// QVector2D m_vel; // Current velocity (calculated)
QVector2D m_pos; // current position in kartesion koordinates
};
#endif // STAR_H
|