MCPcopy Create free account
hub / github.com/comaps/comaps / SetSizes

Method SetSizes

libs/geometry/rect2d.hpp:178–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176 }
177
178 void SetSizes(T dx, T dy)
179 {
180 ASSERT_GREATER(dx, 0, ());
181 ASSERT_GREATER(dy, 0, ());
182
183 dx /= 2;
184 dy /= 2;
185
186 Point<T> const c = Center();
187 m_minX = c.x - dx;
188 m_minY = c.y - dy;
189 m_maxX = c.x + dx;
190 m_maxY = c.y + dy;
191 }
192
193 void SetSizesToIncludePoint(Point<T> const & pt)
194 {

Callers 2

SetMinZoomMethod · 0.80
SetModelViewMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected