Praeclarum.Graphics.StrokeSegment.StrokeSegment C# (CSharp) Method

StrokeSegment() public method

public StrokeSegment ( Stroke stroke, int startIndex, int lastIndex ) : System
stroke Stroke
startIndex int
lastIndex int
return System
		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;
		}