public void LineToClosed(IGeometryTarget target) { target.MoveTo(Left, Top); target.LineTo(Width, Height/2); target.LineTo(Height/2, Height); target.Close(); }
public void Replay(IGeometryTarget target) { foreach (var record in _records) { record(target); } }
public void ArcTo(IGeometryTarget target) { const double pi = Math.PI; target.MoveTo(Left, Top); target.ArcTo(Left, Top, Width, Height, 0, pi / 2); }
public void ArcToClosed(IGeometryTarget target) { const double pi = Math.PI; target.MoveTo(Left, Top); target.ArcTo(Left, Top, Width, Height, 0, pi / 2); target.Close(); }
public void LineToClosed(IGeometryTarget target) { target.MoveTo(Left, Top); target.LineTo(Width, Height / 2); target.LineTo(Height / 2, Height); target.Close(); }
public void ArcToCounterClockwise(IGeometryTarget target) { const double pi = Math.PI; target.MoveTo(Left, Top); target.ArcTo(Left, Top, Width, Height, pi / 2, 0, ArcDirection.CounterClockwise); }
public void Arc(IGeometryTarget target) { const double pi = Math.PI; target.Arc(Left, Top, Width, Height, 0, pi / 2); target.Arc(Left, Top, Width, Height, pi, pi * 1.5); }
public void RoundedRect(IGeometryTarget geometry) { geometry.RoundedRectangle(Left, Top, Width, Height, 8); }
public void Polygon(IGeometryTarget target) { target.Polygon(new double[] { Left, Top, Width, Height/2, Height/2, Height }); }
public static void MoveTo(IGeometryTarget _, Point p) { _.MoveTo(p.X, p.Y); }
public void Line(IGeometryTarget geometry) { geometry.Line(10, 10, 70, 30); }
public void BezierToClosed(IGeometryTarget target) { target.MoveTo(Left, Top); target.BezierTo(Left + Width, Top, Left, Top + Height, Left + Width, Top + Height); target.Close(); }
public void ArcToCounterClockwise(IGeometryTarget target) { const double pi = Math.PI; target.MoveTo(Left, Top); target.ArcTo(Left, Top, Width, Height, pi/2, 0, ArcDirection.CounterClockwise); }
public void Polygon(IGeometryTarget target) { target.Polygon(new double[] { Left, Top, Width, Height / 2, Height / 2, Height }); }
public void Bezier(IGeometryTarget target) { target.Bezier(Left, Top, Width, Top, Left, Height, Width, Height); }
public void Ellipse(IGeometryTarget target) { target.Ellipse(Left, Top, Width, Height); }
public void MultipleGeometryFigures(IGeometryTarget geometry) { geometry.Line(10, 10, 70, 30); geometry.Line(10, 15, 70, 35); }
public void OverlappingClosedFigures(IGeometryTarget target) { Polygon(target); Ellipse(target); }
public void BezierTo(IGeometryTarget target) { target.MoveTo(Left, Top); target.BezierTo(Left + Width, Top, Left, Top + Height, Left + Width, Top + Height); }
public void Replay(IGeometryTarget target) { foreach (var record in _records) record(target); }