58 lines
1.7 KiB
C++
58 lines
1.7 KiB
C++
|
|
#ifndef GERMANAIRLINESVA_FILE_FSUIPC_FSLATITUDESPAN_H
|
|
#define GERMANAIRLINESVA_FILE_FSUIPC_FSLATITUDESPAN_H
|
|
|
|
#include <cmath>
|
|
#include <cstdint>
|
|
#include <sstream>
|
|
#include <string>
|
|
|
|
namespace germanairlinesva
|
|
{
|
|
namespace file
|
|
{
|
|
namespace FSUIPC
|
|
{
|
|
class FsLatitude;
|
|
class FsLatitudeSpan
|
|
{
|
|
private:
|
|
double span;
|
|
|
|
public:
|
|
inline FsLatitudeSpan();
|
|
inline FsLatitudeSpan(double DecimalDegrees);
|
|
inline FsLatitudeSpan(std::int32_t Degrees, double DecimalMinutes);
|
|
inline FsLatitudeSpan(std::int32_t Degrees,
|
|
std::int32_t Minutes,
|
|
double DecimalSeconds);
|
|
|
|
inline static FsLatitudeSpan FromFeet(double Feet);
|
|
inline static FsLatitudeSpan FromNauticalMiles(double NauticalMiles);
|
|
inline static FsLatitudeSpan FromMetres(double Metres);
|
|
inline static FsLatitudeSpan
|
|
BetweenTwoLatitides(const FsLatitude &Lat1, const FsLatitude &Lat2);
|
|
|
|
inline double DecimalDegrees() const;
|
|
inline double DecimalMinutes() const;
|
|
inline double DecimalSeconds() const;
|
|
|
|
inline std::int32_t Degrees() const;
|
|
inline std::int32_t Minutes() const;
|
|
inline std::int32_t Seconds() const;
|
|
|
|
inline double TotalMinutes() const;
|
|
inline double TotalSeconds() const;
|
|
|
|
inline double ToFeet() const;
|
|
inline double ToNauticalMiles() const;
|
|
inline double ToMetres() const;
|
|
|
|
inline const std::string to_string(char DetailLevel) const;
|
|
inline const std::string to_string();
|
|
};
|
|
} // namespace FSUIPC
|
|
} // namespace file
|
|
} // namespace germanairlinesva
|
|
|
|
#endif |