UNPKG

@thi.ng/geom

Version:

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

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