public int getDigitFromCode(CircleF circle, LineSegment2D[] pReferenceLines) { // remember that the first reference line is the horizontal one ,so we do not consider the line in this porocess return binarySearch((int)circle.Center.X, pReferenceLines, (pReferenceLines.Count() - 2) / 2); }
public int binarySearch(int posX, LineSegment2D[] pReferenceLines, int middle) { return _binarySearch(posX, pReferenceLines, middle, pReferenceLines.Count() - 1); }