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

Method round

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

Source from the content-addressed store, hash-verified

264 return Vec(std::fabs(x), std::fabs(y));
265 }
266 Vec round() const {
267 return Vec(std::round(x), std::round(y));
268 }
269 Vec floor() const {
270 return Vec(std::floor(x), std::floor(y));
271 }

Callers 15

cursorPosCallbackFunction · 0.80
setBackgroundMethod · 0.80
json_array_foreachFunction · 0.80
RackWidget_pasteJsonFunction · 0.80
eachNearestGridPosFunction · 0.80
setModulePosForceMethod · 0.80
squeezeModulePosMethod · 0.80
selectionToJsonMethod · 0.80
onDragMoveMethod · 0.80
stepMethod · 0.80
onDragMoveMethod · 0.80
getGridPositionMethod · 0.80

Calls 2

VecClass · 0.85
roundFunction · 0.85

Tested by

no test coverage detected