UNPKG

@thi.ng/geom

Version:

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

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