@thi.ng/geom
Version:
Functional, polymorphic API for 2D geometry types & SVG generation
14 lines • 582 B
TypeScript
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 Polygon3 extends APC implements IHiccupShape3<Polygon3> {
readonly type = "poly3";
readonly dim = 3;
add(...points: Vec[]): void;
copy(): Polygon3;
copyTransformed(fn: Fn<ReadonlyVec[], Vec[]>): Polygon3;
withAttribs(attribs: Attribs): Polygon3;
toHiccup(): (string | Vec<number>[] | Attribs | undefined)[];
}
//# sourceMappingURL=polygon3.d.ts.map