MCPcopy Index your code
hub / github.com/lodev09/react-native-true-sheet / pt

Function pt

example/shared/src/components/Map.tsx:17–20  ·  view source on GitHub ↗
(x: number, y: number)

Source from the content-addressed store, hash-verified

15type XY = [number, number];
16
17const pt = (x: number, y: number): Coordinate => ({
18 latitude: CENTER.latitude + y * S + OY,
19 longitude: CENTER.longitude + x * S + OX,
20});
21
22const catmullRom = (points: XY[], samples = 12): Coordinate[] => {
23 if (points.length < 2) return points.map(([x, y]) => pt(x, y));

Callers 2

catmullRomFunction · 0.85
Map.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected