MCPcopy Create free account
hub / github.com/VCVRack/Rack / grow

Method grow

include/math.hpp:423–428  ·  view source on GitHub ↗

Expands each corner. */

Source from the content-addressed store, hash-verified

421 }
422 /** Expands each corner. */
423 Rect grow(Vec delta) const {
424 Rect r;
425 r.pos = pos.minus(delta);
426 r.size = size.plus(delta.mult(2.f));
427 return r;
428 }
429 /** Contracts each corner. */
430 Rect shrink(Vec delta) const {
431 Rect r;

Callers 6

renderMethod · 0.80
drawMethod · 0.80
stepMethod · 0.80
drawLayerMethod · 0.80
zoomToBoundMethod · 0.80
stepMethod · 0.80

Calls 3

minusMethod · 0.80
plusMethod · 0.80
multMethod · 0.80

Tested by

no test coverage detected