2018-09-13 00:43:28 +02:00
|
|
|
#ifndef GREATCIRCLE_H
|
|
|
|
#define GREATCIRCLE_H
|
|
|
|
|
|
|
|
#include "coordinates.h"
|
|
|
|
|
2018-09-13 01:15:43 +02:00
|
|
|
class GreatCircle
|
2018-09-13 00:43:28 +02:00
|
|
|
{
|
2018-09-13 01:15:43 +02:00
|
|
|
public:
|
|
|
|
GreatCircle(const Coordinates &c1, const Coordinates &c2);
|
|
|
|
|
|
|
|
Coordinates pointAt(double f) const;
|
|
|
|
|
|
|
|
private:
|
2018-09-13 01:45:17 +02:00
|
|
|
double _xA, _xB, _yA, _yB;
|
2018-09-13 01:15:43 +02:00
|
|
|
double _d;
|
|
|
|
double _sinD;
|
2018-09-13 01:45:17 +02:00
|
|
|
double _sinLat1, _sinLat2;
|
2018-09-13 01:15:43 +02:00
|
|
|
};
|
2018-09-13 00:43:28 +02:00
|
|
|
|
|
|
|
#endif // GREATCIRCLE_H
|