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

Function getMappedPositions

source/position.js:62–67  ·  view source on GitHub ↗
(positions, corners)

Source from the content-addressed store, hash-verified

60};
61
62export const getMappedPositions = (positions, corners) => {
63 const mappedPositions = positions.map((position) =>
64 getMappedPosition(position, corners)
65 );
66 return mappedPositions;
67};
68
69export const getRotatedPosition = (position, origin, angle) => {
70 const [px, py] = position;

Callers 5

getColourParentsFunction · 0.90
placeScreenFunction · 0.90
replaceAddressFunction · 0.90
tryToSurroundScreensFunction · 0.90
setWorldCornersFunction · 0.90

Calls 1

getMappedPositionFunction · 0.85

Tested by

no test coverage detected