UNPKG

@thi.ng/geom

Version:

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

14 lines 525 B
import type { Vec } from "@thi.ng/vectors"; import type { Attribs, IHiccupShape3 } from "../api.js"; export declare class Sphere implements IHiccupShape3<Sphere> { pos: Vec; r: number; attribs?: Attribs | undefined; readonly type = "sphere"; readonly dim = 3; constructor(pos?: Vec, r?: number, attribs?: Attribs | undefined); copy(): Sphere; withAttribs(attribs: Attribs): Sphere; toHiccup(): (string | number | Vec<number> | Attribs | undefined)[]; } //# sourceMappingURL=sphere.d.ts.map