@staticmethod
def __convert_2d_bbox_to_depthrenderer_format(bbox):
    """
        Takes a 2D bounding box of format [left, top, right, bottom] and converts it to DepthRenderer format of
        [center_x, center_y, half_width, half_height]
        :param bbox: 4 element list of format [left, top, right, bottom]
        :return: bbox in DepthRenderer format [center_x, center_y, half_width, half_height]
        """
    half_width = (bbox[2] - bbox[0]) / 2
    half_height = (bbox[3] - bbox[1]) / 2
    center_x = (bbox[2] + bbox[0]) / 2
    center_y = (bbox[3] + bbox[1]) / 2
    return [center_x, center_y, half_width, half_height]
