import type { Rectangle } from '../rectangle.js'; import { Line } from '../line.js'; import { Point } from '../point.js'; /** * Clones a line. * @param {Line} input - The line to clone. * @param {Line} output - Optional line to store the result in. * @returns {Line} The cloned line. */ export declare const clone: (input: Line, output?: Line | null) => Line; /** * Gets the intersection point of two lines. * @param {object} a - The first line (with x1, y1, x2, y2 properties). * @param {object} b - The second line (with x1, y1, x2, y2 properties). * @param {object} e - The first endpoint of the first line (with x, y properties). * @param {object} f - The second endpoint of the second line (with x, y properties). * @param {boolean} asSegment - True if the lines are treated as segments, false if infinite lines. * @param {Point} output - Optional point to store the result in. * @returns {Point} The intersection point, or null if there is no intersection. */ export declare const intersectsPoints: (a: Point, b: Point, e: Point, f: Point, asSegment?: boolean, output?: Point | null) => Point | null; /** * Gets the intersection point of two lines (alternative implementation). * @param {object} a - The first line (with x1, y1, x2, y2 properties). * @param {object} b - The second line (with x1, y1, x2, y2 properties). * @param {boolean} asSegment - True if the lines are treated as segments, false if infinite lines. * @param {Point} result - Optional point to store the result in. * @returns {Point} The intersection point, or null if there is no intersection. */ export declare const intersects: (a: Line, b: Line, asSegment: boolean, result: Point) => Point | null; /** * Checks if a line intersects with a rectangle. * @param {object} line - The line to check (with x1, y1, x2, y2 properties). * @param {object} rect - The rectangle to check (with x, y, width, height properties). * @returns {boolean} True if the line intersects with the rectangle, false otherwise. */ export declare const intersectsRectangle: (line: Line, rect: Rectangle) => boolean; /** * Calculates the distance between two points (line length). * @param {object} a - The first point (with x, y properties). * @param {object} b - The second point (with x, y properties). * @returns {number} The distance between the points. */ export declare const reflect: (a: Line, b: Line) => number; //# sourceMappingURL=line.d.ts.map