MCPcopy 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
182func (point Vector) Rounded() Vector {
183 return Vector{float32(math.Round(float64(point.X))), float32(math.Round(float64(point.Y)))}
184}
185
186func (point Vector) LockToGrid() Vector {
187 return Vector{

Callers 4

DrawMethod · 0.80
UpdateMethod · 0.80
DrawMethod · 0.80
OffsetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected