Start on SimConnect
This commit is contained in:
1 parent
997586b8aa
commit
23db85c2a5
22 files changed
+1209
-116
No files matched your search
@@ -40,7 +40,7 @@ namespace file
|
||||
double trueHeading;
|
||||
|
||||
public:
|
||||
// From X-Plane or MakeRwys
|
||||
// From X-Plane
|
||||
inline Runway(std::string designator,
|
||||
double latitudeStart,
|
||||
double longitudeStart,
|
||||
@@ -63,6 +63,21 @@ namespace file
|
||||
this->trueHeading,
|
||||
this->width);
|
||||
};
|
||||
// From MakeRwys
|
||||
inline Runway(std::string designator,
|
||||
struct geodata::point start,
|
||||
double width,
|
||||
double length,
|
||||
double trueHeading)
|
||||
: designator(designator), width(width), length(length),
|
||||
trueHeading(trueHeading)
|
||||
{
|
||||
geodata::point end =
|
||||
geodata::calculatePointDD(start, trueHeading, length);
|
||||
|
||||
this->bounds =
|
||||
geodata::calculateBoxDD(start, end, trueHeading, width);
|
||||
};
|
||||
// From database
|
||||
inline Runway(std::string designator,
|
||||
struct geodata::box bounds,
|
||||
|
||||
Reference in new issue
Block a user