(i + 1) % this._lstMarkerControlPoints.size());
Vec4 pointOnEdge = AirspaceEditorUtil.nearestPointOnSegment(thisMarker.getPoint(), nextMarker.getPoint(), pickPoint);
if (!AirspaceEditorUtil.isPointBehindLineOrigin(ray, pointOnEdge))
{
double d = pointOnEdge.distanceTo3(pickPoint);
if (d < nearestDistance)
{
newVertexIndex = i + 1;
nearestDistance = d;
}