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

Function CalculateScale

libs/drape_frontend/screen_operations.cpp:29–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29double CalculateScale(m2::RectD const & pixelRect, m2::RectD const & localRect)
30{
31 return std::max(localRect.SizeX() / pixelRect.SizeX(), localRect.SizeY() / pixelRect.SizeY());
32}
33
34m2::PointD CalculateCenter(double scale, m2::RectD const & pixelRect, m2::PointD const & userPos,
35 m2::PointD const & pixelPos, double azimuth)

Callers 2

GetPrettyMoveAnimationFunction · 0.85
GetSetRectAnimationFunction · 0.85

Calls 2

SizeXMethod · 0.80
SizeYMethod · 0.80

Tested by

no test coverage detected