@achirita/blox
Version:
A CAD library for building 3D models in the browser.
18 lines (17 loc) • 756 B
TypeScript
import { Plane, Vector } from '../math';
import { Edge } from '../modeling';
/**
* Creates an arc between the start and end points that goes through the through point.
* @param {Object} parameters - The parameters for the arc.
* @param {Plane} [parameters.plane=Plane.XY] - The plane in which the arc is constructed.
* @param {Vector} parameters.start - The start point of the arc.
* @param {Vector} parameters.through - The point through which the arc must pass.
* @param {Vector} parameters.end - The end point of the arc.
* @returns {Edge} An `Edge` object representing the constructed arc.
*/
export function ThreePointsArc({ plane, start, through, end }: {
plane?: Plane;
start: Vector;
through: Vector;
end: Vector;
}): Edge;