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

Method Rect

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

Source from the content-addressed store, hash-verified

303 Vec size;
304
305 Rect() {}
306 Rect(Vec pos, Vec size) : pos(pos), size(size) {}
307 Rect(float posX, float posY, float sizeX, float sizeY) : pos(Vec(posX, posY)), size(Vec(sizeX, sizeY)) {}
308 /** Constructs a Rect from a top-left and bottom-right vector.

Callers

nothing calls this directly

Calls 1

VecClass · 0.85

Tested by

no test coverage detected