Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DISTRHO/Cardinal
/ grow
Method
grow
lv2export/includes/rack.hpp:346–351 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
344
return Rect(Vec(), size);
345
}
346
Rect grow(Vec delta) const {
347
Rect r;
348
r.pos = pos.minus(delta);
349
r.size = size.plus(delta.mult(2.f));
350
return r;
351
}
352
Rect shrink(Vec delta) const {
353
Rect r;
354
r.pos = pos.plus(delta);
Callers
1
drawLayer
Method · 0.80
Calls
3
minus
Method · 0.80
plus
Method · 0.80
mult
Method · 0.80
Tested by
no test coverage detected