MCPcopy
hub / github.com/statelyai/xstate / isSamePos

Function isSamePos

examples/snake-react/src/snakeMachine.ts:44–46  ·  view source on GitHub ↗
(p1: Point, p2: Point)

Source from the content-addressed store, hash-verified

42};
43
44function isSamePos(p1: Point, p2: Point) {
45 return p1.x === p2.x && p1.y === p2.y;
46}
47
48function isOutsideGrid(gridSize: Point, p: Point) {
49 return p.x < 0 || p.x >= gridSize.x || p.y < 0 || p.y >= gridSize.y;

Callers 3

getGamObjectAtPosFunction · 0.85
findFunction · 0.85
snakeMachine.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…