MCPcopy Create free account
hub / github.com/davisking/dlib / contains

Method contains

dlib/geometry/drectangle.h:151–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149 }
150
151 bool contains (
152 const dlib::vector<double,2>& p
153 ) const
154 {
155 if (p.x() < l || p.x() > r || p.y() < t || p.y() > b)
156 return false;
157 return true;
158 }
159
160 bool contains (
161 const drectangle& rect

Callers

nothing calls this directly

Calls 5

is_emptyMethod · 0.45
leftMethod · 0.45
rightMethod · 0.45
topMethod · 0.45
bottomMethod · 0.45

Tested by

no test coverage detected