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

Method Add

libs/geometry/rect2d.hpp:87–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85 bool IsEmptyInterior() const { return m_minX >= m_maxX || m_minY >= m_maxY; }
86
87 void Add(m2::Point<T> const & p)
88 {
89 m_minX = std::min(p.x, m_minX);
90 m_minY = std::min(p.y, m_minY);
91 m_maxX = std::max(p.x, m_maxX);
92 m_maxY = std::max(p.y, m_maxY);
93 }
94
95 void Add(m2::Rect<T> const & r)
96 {

Callers 11

GetRectCaseFunction · 0.45
AddPointMethod · 0.45
CalcLimitRectMethod · 0.45
operator()Method · 0.45
UNIT_TESTFunction · 0.45
UNIT_TESTFunction · 0.45
CheckInRectFunction · 0.45
check_avgFunction · 0.45
UNIT_TESTFunction · 0.45
UNIT_TESTFunction · 0.45
UNIT_TESTFunction · 0.45

Calls

no outgoing calls

Tested by 7

UNIT_TESTFunction · 0.36
UNIT_TESTFunction · 0.36
CheckInRectFunction · 0.36
check_avgFunction · 0.36
UNIT_TESTFunction · 0.36
UNIT_TESTFunction · 0.36
UNIT_TESTFunction · 0.36