MCPcopy Create free account
hub / github.com/adobe/react-spectrum / cross

Function cross

packages/react-aria/src/tooltip/useSafeArea.ts:129–130  ·  view source on GitHub ↗
(o: Point, a: Point, b: Point)

Source from the content-addressed store, hash-verified

127 }
128
129 let cross = (o: Point, a: Point, b: Point) =>
130 (a.x - o.x) * (b.y - o.y) - (a.y - o.y) * (b.x - o.x);
131
132 let lower: Point[] = [];
133 for (let p of sorted) {

Callers 1

convexHullFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected