@thi.ng/geom
Version:
Functional, polymorphic API for 2D geometry types & SVG generation
14 lines • 525 B
TypeScript
import type { Vec } from "@thi.ng/vectors";
import type { Attribs, IHiccupShape2 } from "../api.js";
export declare class Circle implements IHiccupShape2<Circle> {
pos: Vec;
r: number;
attribs?: Attribs | undefined;
readonly type = "circle";
readonly dim = 2;
constructor(pos?: Vec, r?: number, attribs?: Attribs | undefined);
copy(): Circle;
withAttribs(attribs: Attribs): Circle;
toHiccup(): (string | number | Vec<number> | Attribs | undefined)[];
}
//# sourceMappingURL=circle.d.ts.map