UNPKG

@maplat/edgeruler

Version:

A small library for dual-constraining a Delaunator triangulation

18 lines (16 loc) 376 B
export interface Point { x: number; y: number; } export interface Triangle { vertices: Point[]; render: () => void; } export interface TriangulationStrategy { name: string; addPoint: (point: Point) => void; reset: () => void; render: () => void; benchmark: () => number; setPoints?: (points: Point[], flatArray?: Float64Array) => void; }