testMidpoint
import { midpoint } from "#codebase/geo"; import assert from "node:assert/strict"; export const testMidpoint = () => assert.deepEqual(midpoint({ x: 0, y: 0 }, { x: 4, y: 2 }), { x: 2, y: 1 })
import { midpoint } from "#codebase/geo"; import assert from "node:assert/strict"; export const testMidpoint = () => assert.deepEqual(midpoint({ x: 0, y: 0 }, { x: 4, y: 2 }), { x: 2, y: 1 })