Skip to content

Commit

Permalink
remove ghost code
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Jan 10, 2025
1 parent 4faf11c commit 0c66572
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions algos/infinite-grid-ijump-astar/v2/lib/shortenPathWithShortcuts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,28 +64,6 @@ export function shortenPathWithShortcuts(
overlapping = currentMinY <= futureMaxY && currentMaxY >= futureMinY
}

// "T" is the dimension if these lines are projected on their parallel axis

// let currentTStart = bothVertical
// ? currentSegment.start.y
// : currentSegment.start.x
// let currentTEnd = bothVertical
// ? currentSegment.end.y
// : currentSegment.end.x

// let futureTStart = bothVertical
// ? futureSegment.start.y
// : futureSegment.start.x
// let futureTEnd = bothVertical ? futureSegment.end.y : futureSegment.end.x

// const currentTMin = Math.min(currentTStart, currentTEnd)
// const currentTMax = Math.max(currentTStart, currentTEnd)
// const futureTMin = Math.min(futureTStart, futureTEnd)
// const futureTMax = Math.max(futureTStart, futureTEnd)

// const overlappingInT =
// currentTMin <= futureTMax && currentTMax >= futureTMin

if (!overlapping) continue

const candidateShortcuts: Point[] = []
Expand Down

0 comments on commit 0c66572

Please sign in to comment.