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;
}