verse.utils.utils.rect_corners

verse.utils.utils.rect_corners(center: ndarray, length: float, width: float, angle: float, include_midpoints: bool = False, include_center: bool = False) List[ndarray]

Returns the positions of the corners of a rectangle. :param center: the rectangle center :param length: the rectangle length :param width: the rectangle width :param angle: the rectangle angle :param include_midpoints: include middle of edges :param include_center: include the center of the rect :return: a list of positions