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