MCPcopy
hub / github.com/wcandillon/can-it-be-done-in-react-native / vec

Function vec

reanimated-2/src/Fluid/Slide.tsx:24–24  ·  view source on GitHub ↗
(x: number, y: number)

Source from the content-addressed store, hash-verified

22const CENTER = { x: 1, y: 1 };
23
24const vec = (x: number, y: number) => cartesian2Canvas({ x, y }, CENTER);
25const addX = (v: Vector, x: number) => {
26 "worklet";
27 return { x: v.x + x, y: v.y };

Callers 15

Slide.tsxFile · 0.70
LocationStickerFunction · 0.50
CloudFunction · 0.50
SunFunction · 0.50
SkyFunction · 0.50
generateEllipsePointsFunction · 0.50
catmullRomSplineFunction · 0.50
TreeFunction · 0.50
getPointAtLengthFunction · 0.50
BlurGradientDemoFunction · 0.50
BlurMaskFunction · 0.50
WallpaperFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected