@rxflow/manhattan
Version:
Manhattan routing algorithm for ReactFlow - generates orthogonal paths with obstacle avoidance
21 lines • 576 B
TypeScript
import { Point } from './Point';
import { Rectangle } from './Rectangle';
/**
* Line class representing a line segment
*/
export declare class Line {
start: Point;
end: Point;
constructor(start: Point, end: Point);
/**
* Calculate intersection points with a rectangle
* Returns an array of intersection points
*/
intersect(rect: Rectangle): Point[];
/**
* Calculate intersection point between two line segments
* Returns null if lines don't intersect
*/
private lineIntersection;
}
//# sourceMappingURL=Line.d.ts.map