MCPcopy Create free account
hub / github.com/comaps/comaps / BearingInDeg

Function BearingInDeg

tools/openlr/score_candidate_paths_getter.cpp:42–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42uint32_t BearingInDeg(m2::PointD const & a, m2::PointD const & b)
43{
44 auto const angle = location::AngleToBearing(math::RadToDeg(ang::AngleTo(a, b)));
45 CHECK(0.0 <= angle && angle <= 360.0, (angle));
46 return angle;
47}
48
49double DifferenceInDeg(double a1, double a2)
50{

Callers 1

GetBearingScoreMethod · 0.85

Calls 3

AngleToBearingFunction · 0.85
RadToDegFunction · 0.85
AngleToFunction · 0.85

Tested by

no test coverage detected