Skip to content

class `bf::Result` and related classes

Boyin Chen edited this page Jan 26, 2018 · 1 revision

class bf::Result

This class is used for representing the calculation result.

Data members

  • std::string route: a route string, e.g. ZBAA SID JB W59 HG A461 DAPRO W612 MOMRA W615 NIVEM R473 BEMAG V5 ATAGA STAR ZGGG
  • std::vector<bf::Leg> legs: each legs in this route
  • std::vector<bf::WayPoint> waypoints: each waypoints (VOR, NDB, FIX, etc.) in this route

class bf::Leg

Data members

  • float distance: the distance between two waypoints
  • std::string from: the name of a waypoint (e.g. JB)
  • std::string to: the name of a waypoint
  • std::string route: the name of the route connecting waypoints above (e.g. A461)

class bf::WayPoint

A class stores the name and coordinate of a waypoint.

Data members

  • std::string name
  • bf::Coordinate coord

class bf::Coordinate

A class represents a coordinate on the earth using latitude and longitude.

Data members

  • float latitude
  • float longitude

Member function

  • float bf::Coordinate::DistanceFrom(bf::Coordinate x): returning the distance between itself and x