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

Function Area

libs/search/geocoder.cpp:260–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260double Area(m2::RectD const & rect)
261{
262 return rect.IsValid() ? rect.SizeX() * rect.SizeY() : 0;
263}
264
265/// @brief Computes the average similarity between |rect| and |pivot|.
266/// By similarity between two rects we mean a fraction of the area of

Callers 2

GetSimilarityFunction · 0.70

Calls 3

SizeXMethod · 0.80
SizeYMethod · 0.80
IsValidMethod · 0.45

Tested by

no test coverage detected