Praeclarum.Graphics.Stroke.RecognizeHorizontalLine C# (CSharp) Метод

RecognizeHorizontalLine() публичный Метод

public RecognizeHorizontalLine ( int startIndex, int &endIndex ) : bool
startIndex int
endIndex int
Результат bool
		public bool RecognizeHorizontalLine (int startIndex, out int endIndex)
		{
			endIndex = startIndex;
			
			var segs = GetDirectionSegments (startIndex);
			
			if (segs.Length > 0 && segs [0].Direction.IsHorizontal ()) {				
				endIndex = segs [0].EndIndex;
				return true;
			}
			
			return false;
		}