UNPKG

@technobuddha/library

Version:
12 lines (11 loc) 357 B
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;