Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SolarLune/masterplan
/ Rounded
Method
Rounded
utils.go:182–184 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
180
}
181
182
func
(point Vector) Rounded() Vector {
183
return
Vector{float32(math.Round(float64(point.X))), float32(math.Round(float64(point.Y)))}
184
}
185
186
func
(point Vector) LockToGrid() Vector {
187
return
Vector{
Callers
4
Draw
Method · 0.80
Update
Method · 0.80
Draw
Method · 0.80
Offset
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected