MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / deg_rad

Function deg_rad

src/geohash_helper.cpp:54–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52const double MERCATOR_MAX = 20037726.37;
53
54static inline double deg_rad(double ang) { return ang * D_R; }
55static inline double rad_deg(double ang) { return ang / D_R; }
56
57/* This function is used in order to estimate the step (bits precision)

Callers 2

geohashBoundingBoxFunction · 0.85
geohashGetDistanceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected