You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
998 B

4 months ago
import type { Point } from '../types';
export type LineSegment = [Point, Point];
/**
* <zh/> 线
*
* <en/> Judge whether two line segments are parallel
* @param l1 - <zh/> 线 | <en/> the first line segment
* @param l2 - <zh/> 线 | <en/> the second line segment
* @returns <zh/> | <en/> whether parallel or not
*/
export declare function isLinesParallel(l1: LineSegment, l2: LineSegment): boolean;
/**
* <zh/> 线
*
* <en/> Get the intersection of two line segments
* @param l1 - <zh/> 线 | <en/> the first line segment
* @param l2 - <zh/> 线 | <en/> the second line segment
* @param extended - <zh/> 线 | <en/> whether to include the intersection on the extension line
* @returns <zh/> | <en/> intersection
*/
export declare function getLinesIntersection(l1: LineSegment, l2: LineSegment, extended?: boolean): Point | undefined;