How to calculate center for a model

Hi Team,

I am looking for some guidance on how to center of a model based on tilesets’ Cartographic center coordinates (longitude, latitude, height).

Could you please advise?