UNPKG

@thi.ng/geom

Version:

Functional, polymorphic API for 2D geometry types & SVG generation

7 lines 430 B
import type { Attribs } from "./api.js"; import type { Vec } from "@thi.ng/vectors"; import { Triangle } from "./api/triangle.js"; export declare function triangle(a: Vec, b: Vec, c: Vec, attribs?: Attribs): Triangle; export declare function triangle(pts: Iterable<Vec>, attribs?: Attribs): Triangle; export declare const equilateralTriangle: (a: Vec, b: Vec, attribs?: Attribs) => Triangle; //# sourceMappingURL=triangle.d.ts.map