MCPcopy 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
318func (cr CorrectingRect) Center() Vector {
319 return Vector{cr.X1 + (cr.Width() / 2), cr.Y1 + (cr.Height() / 2)}
320}
321
322func (cr CorrectingRect) SDLRect() *sdl.FRect {
323

Callers 1

handleScreenshotsFunction · 0.95

Calls 2

WidthMethod · 0.95
HeightMethod · 0.95

Tested by

no test coverage detected