UNPKG

@antv/g-math

Version:
7 lines (6 loc) 429 B
import type { BBox, PointTuple } from './types'; export declare function box(points: PointTuple[]): BBox; export declare function length(points: PointTuple[]): number; export declare function pointAt(points: PointTuple[], t: number): import("./types").Point; export declare function pointDistance(points: PointTuple[], x: number, y: number): number; export declare function tangentAngle(points: PointTuple[], t: number): number;