UNPKG

@thi.ng/geom

Version:

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

14 lines 606 B
import type { Fn } from "@thi.ng/api"; import type { ReadonlyVec, Vec } from "@thi.ng/vectors"; import type { Attribs, IHiccupShape2 } from "../api.js"; import { APC } from "./apc.js"; export declare class Triangle extends APC implements IHiccupShape2<Triangle> { readonly type = "tri"; readonly dim = 2; constructor(points: Iterable<Vec>, attribs?: Attribs); copy(): Triangle; copyTransformed(fn: Fn<ReadonlyVec[], Vec[]>): Triangle; withAttribs(attribs: Attribs): Triangle; toHiccup(): (string | Vec<number>[] | Attribs | undefined)[]; } //# sourceMappingURL=triangle.d.ts.map