(position, corners)
| 37 | // Corners... of a deeper screen |
| 38 | // Return: Where the position would be, if it was inside the deeper screen (instead of the higher screen) |
| 39 | export const getRelativePosition = (position, corners) => { |
| 40 | const relativePosition = bilerp(position, corners); |
| 41 | return relativePosition; |
| 42 | }; |
| 43 | |
| 44 | export const getRelativePositions = (positions, corners) => { |
| 45 | const relativePositions = positions.map((position) => |
no test coverage detected