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

Method LockPosition

grid.go:310–314  ·  view source on GitHub ↗
(position float32)

Source from the content-addressed store, hash-verified

308}
309
310func (grid *Grid) LockPosition(position float32) float32 {
311
312 return float32(math.Floor(float64(position / globals.GridSize)))
313
314}
315
316// func (grid *Grid) CardsAt(point Point) []*Card {
317// cards := []*Card{}

Callers 8

SelectMethod · 0.95
PasteCardsMethod · 0.45
OpenProjectFromFunction · 0.45
MouseActionsMethod · 0.45
GlobalShortcutsMethod · 0.45
placeCardInStackFunction · 0.45
NewInternetContentsFunction · 0.45
ConstructMenusFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected