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

Method operator +

dlib/geometry/drectangle.h:122–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120 ) const { return (t > b || l > r); }
121
122 drectangle operator + (
123 const drectangle& rhs
124 ) const
125 {
126 if (rhs.is_empty())
127 return *this;
128 else if (is_empty())
129 return rhs;
130
131 return drectangle (
132 std::min(l,rhs.l),
133 std::min(t,rhs.t),
134 std::max(r,rhs.r),
135 std::max(b,rhs.b)
136 );
137 }
138
139 drectangle intersect (
140 const drectangle& rhs

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected