@technobuddha/library
Version:
A large library of useful functions
12 lines (11 loc) • 357 B
TypeScript
import { type LineSegment } from './geometry.ts';
/**
* Calculates the length of a given line segment using the distance formula.
*
* @param line - The line segment for which to calculate the length.
* @returns The length of the line segment.
*
* @group Geometry
* @category LineSegment
*/
export declare function length(line: LineSegment): number;