Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SolarLune/masterplan
/ Center
Method
Center
utils.go:318–320 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
316
}
317
318
func
(cr CorrectingRect) Center() Vector {
319
return
Vector{cr.X1 + (cr.Width() / 2), cr.Y1 + (cr.Height() / 2)}
320
}
321
322
func
(cr CorrectingRect) SDLRect() *sdl.FRect {
323
Callers
1
handleScreenshots
Function · 0.95
Calls
2
Width
Method · 0.95
Height
Method · 0.95
Tested by
no test coverage detected