Class TwistedLine

java.lang.Object
squidpony.squidmath.TwistedLine

public class TwistedLine
extends Object
Like WobblyLine, this generates orthogonally-connected paths of Coord that meander through an area; unlike WobblyLine, this won't ever generate paths that cross themselves.
This uses a similar algorithm to GrowingTreeMazeGenerator to generate a fully-connected graph for a given rectangular area, then solves it with DefaultGraph.findShortestPath(Coord, Coord, ArrayList, Heuristic).
Created by Tommy Ettinger on 6/26/2020.