Calculating a centerline in VS?