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

Method width

dlib/geometry/drectangle.h:95–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 ) const { return dlib::vector<double,2>(right(), bottom()); }
94
95 double width (
96 ) const
97 {
98 if (is_empty())
99 return 0;
100 else
101 return r - l + 1;
102 }
103
104 double height (
105 ) const

Callers 1

set_rect_areaFunction · 0.45

Calls 1

is_emptyFunction · 0.85

Tested by

no test coverage detected