MCPcopy Create free account
hub / github.com/SolarLune/masterplan / AddXY

Method AddXY

utils.go:270–282  ·  view source on GitHub ↗
(x, y float32)

Source from the content-addressed store, hash-verified

268}
269
270func (cr CorrectingRect) AddXY(x, y float32) CorrectingRect {
271 if x < cr.X1 {
272 cr.X1 = x
273 } else if x > cr.X2 {
274 cr.X2 = x
275 }
276 if y < cr.Y1 {
277 cr.Y1 = y
278 } else if y > cr.Y2 {
279 cr.Y2 = y
280 }
281 return cr
282}
283
284func (cr CorrectingRect) TopLeft() Vector {
285 return Vector{cr.X1, cr.Y1}

Callers 2

handleScreenshotsFunction · 0.95
OpenProjectFromFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected