def set_cv_value(self, index, x_value, y_value):
        """ Updates the cv point at the given index """
        self._cv_points[index] = [x_value, y_value]
        self._modified = True
 Updates the cv point at the given index 
metadrive/render_pipeline/rpcore/util/smooth_connected_curve.py