Can you modify `PolylinePipeline.scaleToGeodeticHeight` to take a result parameter? That way you don't have to do a copy. Take care in that function so that you can pass in the same array as both `position` and `result`.