So I created two Objects
in my Java program, a Point
object (in 2d space, containing two double class variables, one for x and one for y), as well as a LineSegment
class, with the two endpoints as its class variables.
I also created a Path
class later on, with an array of points as its class variable, the order of the points determining the path and assuming the first point is the starting point and each subsequent point is visited in order, traversing between points in a straight direction.
How can I determine, given a set of points, all of the possible paths, with a specified starting and ending point, and a rule that none of these paths can revisit any points for any reason?
Thanks!