private void SetAxis(Line2D axis, Vector2D startPoint, Vector2D endPoint) { axis.StartPoint = startPoint; axis.EndPoint = endPoint; axis.RenderLayer = renderLayer; axis.Clip(clippingBounds); }
private void AddPointToEnd(Vector2D point) { points.Add(point); if (points.Count <= 1) return; var line = new Line2D(ToQuadratic(points[points.Count - 2], viewport, drawArea), ToQuadratic(point, viewport, drawArea), Color); line.Clip(clippingBounds); lines.Add(line); }
private void InsertPointAt(Vector2D point, int index) { if (index > 0) MoveLineEndpoint(point, index); var line = new Line2D(ToQuadratic(point, viewport, drawArea), ToQuadratic(points[index], viewport, drawArea), Color); line.Clip(clippingBounds); lines.Insert(index, line); points.Insert(index, point); }