UNPKG

@achirita/blox

Version:

A CAD library for building 3D models in the browser.

16 lines (15 loc) 603 B
import { Plane, Vector } from '../math'; import { Edge } from '../modeling'; /** * Creates a line based on the start and end points. * @param {Object} parameters - The parameters for the line. * @param {Plane} [parameters.plane=Plane.XY] - The plane in which the line is constructed. * @param {Vector} parameters.start - The start point of the line. * @param {Vector} parameters.end - The end point of the line. * @returns {Edge} An `Edge` object representing the constructed line. */ export function Line({ plane, start, end }: { plane?: Plane; start: Vector; end: Vector; }): Edge;