public StrokeSegment (Stroke stroke, int startIndex, int lastIndex)
{
_points = stroke.Points;
if (startIndex >= _points.Length) throw new ArgumentOutOfRangeException ("startIndex");
if (lastIndex >= _points.Length) throw new ArgumentOutOfRangeException ("lastIndex");
StartIndex = startIndex;
EndIndex = lastIndex;
}