Declaration

func segmentHit(
    by point: NSPoint,
    padding: CGFloat
) -> Int