@antv/g-math
Version:
Geometry util
7 lines (6 loc) • 429 B
TypeScript
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;