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

Method getCenter

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

Returns the center point of the rectangle. Returns a NaN coordinate if pos=-inf and size=inf. */

Source from the content-addressed store, hash-verified

366 Returns a NaN coordinate if pos=-inf and size=inf.
367 */
368 Vec getCenter() const {
369 return pos.plus(size.mult(0.5f));
370 }
371 Vec getTopLeft() const {
372 return pos;
373 }

Callers 5

getInputPosMethod · 0.80
getOutputPosMethod · 0.80
onChangeMethod · 0.80
loadSelectionMethod · 0.80
zoomToBoundMethod · 0.80

Calls 2

plusMethod · 0.80
multMethod · 0.80

Tested by

no test coverage detected