Use a `result` parameter so we don't have to allocate each time this is called.  We are being mindful of this throughout Cesium for performance.  See #1161.