@achirita/blox
Version:
A CAD library for building 3D models in the browser.
18 lines (17 loc) • 763 B
TypeScript
import { Plane, Vector } from '../math';
import { Edge } from '../modeling';
/**
* Creates an arc between the start and end points with a specified tangent vector at the start 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.tangent - The tangent vector at the start point.
* @param {Vector} parameters.end - The end point of the arc.
* @returns {Edge} An `Edge` object representing the constructed arc.
*/
export function TangentArc({ plane, start, tangent, end }: {
plane?: Plane;
start: Vector;
tangent: Vector;
end: Vector;
}): Edge;