Kind of. I used the word 'parts' instead of 'pairs' to be explicit in the fact that you are not sending literal pairs - you are sending the horizontal part of a x,y pair followed by the vertical part.

Honestly I think the float array needs to be done away with because I feel its not as explicit as it should be for reasons like this.