private void RemoveSegment(Vector2 position) { var seg = GetSegmentNearPosition(position); if(seg != null) { RemoveSegment(seg.index); return; } }