UNPKG

@thi.ng/geom

Version:

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

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