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

Method contains

dlib/geometry/rectangle.h:207–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205 }
206
207 bool contains (
208 const point& p
209 ) const
210 {
211 if (p.x() < l || p.x() > r || p.y() < t || p.y() > b)
212 return false;
213 return true;
214 }
215
216 bool contains (
217 long x,

Callers 15

distance_to_rect_edgeFunction · 0.45
nearest_rectFunction · 0.45
clip_line_to_rectangleFunction · 0.45
current_element_validMethod · 0.45
advance_pointMethod · 0.45
on_mouse_downMethod · 0.45
drawMethod · 0.45
on_mouse_downMethod · 0.45
on_mouse_moveMethod · 0.45
drawMethod · 0.45
on_wheel_upMethod · 0.45
on_wheel_downMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected