@thi.ng/geom
Version:
Functional, polymorphic API for 2D geometry types & SVG generation
16 lines • 674 B
TypeScript
import type { Fn, IClear } from "@thi.ng/api";
import type { ReadonlyVec, Vec } from "@thi.ng/vectors";
import type { Attribs, PCLike } from "../api.js";
export declare abstract class APC implements IClear, PCLike {
attribs?: Attribs | undefined;
points: Vec[];
constructor(points?: Iterable<Vec>, attribs?: Attribs | undefined);
abstract get type(): number | string;
abstract get dim(): number;
abstract copy(): APC;
abstract copyTransformed(fn: Fn<ReadonlyVec[], Vec[]>): APC;
abstract withAttribs(attribs: Attribs): APC;
[Symbol.iterator](): Generator<Vec<number>, void, unknown>;
clear(): void;
}
//# sourceMappingURL=apc.d.ts.map