Computes the 2D distance from a midpoint.
The renderer instance.
The midpoint data array.
The x-coordinate.
The y-coordinate.
The distance from the midpoint.
Computes the 2D distance from a midpoint.