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

Function ToRotated

libs/drape_frontend/navigator.cpp:308–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308m2::AnyRectD ToRotated(Navigator const & navigator, m2::RectD const & rect)
309{
310 double const dx = rect.SizeX();
311 double const dy = rect.SizeY();
312
313 return m2::AnyRectD(rect.Center(), ang::Angle<double>(navigator.Screen().GetAngle()),
314 m2::RectD(-dx / 2, -dy / 2, dx / 2, dy / 2));
315}
316
317void CheckMinGlobalRect(m2::RectD & rect, uint32_t tileSize, double visualScale, double scale3d)
318{

Callers 1

SetRectMethod · 0.85

Calls 4

SizeXMethod · 0.80
SizeYMethod · 0.80
CenterMethod · 0.45
GetAngleMethod · 0.45

Tested by

no test coverage detected