Computes the 2D distance from an endpoint.
The renderer instance.
The snap data array.
The x-coordinate.
The y-coordinate.
The distance from the endpoint.
Computes the 2D distance from an endpoint.