# Gimp.context_get_distance_metric

    function context_get_distance_metric(): Gegl.DistanceMetric {
        // Gjs wrapper for gimp_context_get_distance_metric()
    }

Get the distance metric used in some computations.

This procedure returns the distance metric in the current context. See Gimp.context_set_distance_metric to know more about its usage.

Since 2.10

Returns

  The distance metric.