RouteSolver: ((params: { obstacles: { cx: number; cy: number; h: number; w: number }[]; terminals: { facing_direction?: "up" | "down" | "left" | "right"; x: number; y: number }[] }) => Promise<{ from: { x: number; y: number }; to: { x: number; y: number } }[]>)
Type declaration
-
- (params: { obstacles: { cx: number; cy: number; h: number; w: number }[]; terminals: { facing_direction?: "up" | "down" | "left" | "right"; x: number; y: number }[] }): Promise<{ from: { x: number; y: number }; to: { x: number; y: number } }[]>
-
Parameters
-
params: { obstacles: { cx: number; cy: number; h: number; w: number }[]; terminals: { facing_direction?: "up" | "down" | "left" | "right"; x: number; y: number }[] }
-
obstacles: { cx: number; cy: number; h: number; w: number }[]
-
terminals: { facing_direction?: "up" | "down" | "left" | "right"; x: number; y: number }[]
Returns Promise<{ from: { x: number; y: number }; to: { x: number; y: number } }[]>