How to get rectangle extent by given center LatLng point and rectangle width + height

Hi guys.

Can you provide Cesium API code to calculate rectangle extent by given center LatLng point and rectangle width and height ?

//Cesium.Cartesian3 or CesiumCartographic centerPoint
//int width (pixels or meters)
//int height (pixels or meters)
//return Cesium.Rectangle

function getExtent(centerPoint, width, height) {
}