Converts a path to an array of line segments.
def PathSegments( inPath: Path, / ) -> outSegments: list[Segment2D]