MCPcopy Create free account
hub / github.com/TodePond/ScreenPond / isPositionInCorners

Function isPositionInCorners

source/position.js:83–86  ·  view source on GitHub ↗
(position, corners, pity = [0, 0])

Source from the content-addressed store, hash-verified

81};
82
83export const isPositionInCorners = (position, corners, pity = [0, 0]) => {
84 const mappedPosition = getMappedPosition(position, corners);
85 return isMappedPositionInCorners(mappedPosition, pity);
86};
87
88export const isMappedPositionInCorners = (position, pity = [0, 0]) => {
89 const [x, y] = position;

Callers

nothing calls this directly

Calls 2

getMappedPositionFunction · 0.85

Tested by

no test coverage detected