MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / cross

Function cross

apps/start/src/components/realtime/map/coordinates.ts:200–204  ·  view source on GitHub ↗
(o: Coordinate, a: Coordinate, b: Coordinate)

Source from the content-addressed store, hash-verified

198}
199
200function cross(o: Coordinate, a: Coordinate, b: Coordinate): number {
201 return (
202 (a.long - o.long) * (b.lat - o.lat) - (a.lat - o.lat) * (b.long - o.long)
203 );
204}
205
206// convex hull
207export function getOuterMarkers(coordinates: Coordinate[]): Coordinate[] {

Callers 1

getOuterMarkersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected