Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
cursorPosCallback
Function · 0.80
setBackground
Method · 0.80
json_array_foreach
Function · 0.80
RackWidget_pasteJson
Function · 0.80
eachNearestGridPos
Function · 0.80
setModulePosForce
Method · 0.80
squeezeModulePos
Method · 0.80
selectionToJson
Method · 0.80
onDragMove
Method · 0.80
step
Method · 0.80
onDragMove
Method · 0.80
getGridPosition
Method · 0.80
Calls
2
Vec
Class · 0.85
round
Function · 0.85
Tested by
no test coverage detected