MCPcopy Create free account
hub / github.com/davisking/dlib / operator +

Method operator +

dlib/geometry/rectangle.h:178–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176 ) const { return (t > b || l > r); }
177
178 rectangle operator + (
179 const rectangle& rhs
180 ) const
181 {
182 if (rhs.is_empty())
183 return *this;
184 else if (is_empty())
185 return rhs;
186
187 return rectangle (
188 std::min(l,rhs.l),
189 std::min(t,rhs.t),
190 std::max(r,rhs.r),
191 std::max(b,rhs.b)
192 );
193 }
194
195 rectangle intersect (
196 const rectangle& rhs

Callers

nothing calls this directly

Calls 5

is_emptyFunction · 0.85
rectangleClass · 0.70
minFunction · 0.50
maxFunction · 0.50
is_emptyMethod · 0.45

Tested by

no test coverage detected