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

Function ToAngleInDeg

tools/openlr/score_candidate_paths_getter.cpp:36–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34double constexpr kAnglesInBucket = 360.0 / kNumBuckets;
35
36double ToAngleInDeg(uint32_t angleInBuckets)
37{
38 CHECK_LESS_OR_EQUAL(angleInBuckets, 255, ());
39 return math::Clamp(kAnglesInBucket * static_cast<double>(angleInBuckets), 0.0, 360.0);
40}
41
42uint32_t BearingInDeg(m2::PointD const & a, m2::PointD const & b)
43{

Callers 1

GetBearingScoreMethod · 0.85

Calls 1

ClampFunction · 0.85

Tested by

no test coverage detected