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

Function getPositionedCorners

source/corners.js:45–50  ·  view source on GitHub ↗
(corners, position)

Source from the content-addressed store, hash-verified

43};
44
45export const getPositionedCorners = (corners, position) => {
46 const [a] = corners;
47 const displacement = subtractVector(position, a);
48 const movedCorners = getMovedCorners(corners, displacement);
49 return movedCorners;
50};
51
52export const getCornersPerimeter = (corners) => {
53 const [a, b, c, d] = corners;

Callers 1

hand.jsFile · 0.90

Calls 2

subtractVectorFunction · 0.90
getMovedCornersFunction · 0.85

Tested by

no test coverage detected