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

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

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