So I have groups of (x,y) coordinates that I'm using to draw lines. The lines aren't perfectly straight but they are connected.
In a Cartesian plane the middle would be called the origin, but I'm working with a digital image processing program, so the coordinate (0,0) is at the top left of the image.
What I'm trying to do is translate all of the coordinates in each line (group of coordinates) the same distance, so that the first point in each line starts at the middle of the image.
Here is an example of what I want:
Here is what I have: