Files
PdfPig/src/UglyToad.Pdf/Graphics/Operations/PathConstruction/AppendStraightLineSegment.cs

23 lines
526 B
C#
Raw Normal View History

namespace UglyToad.Pdf.Graphics.Operations.PathConstruction
{
using Geometry;
internal class AppendStraightLineSegment : IGraphicsStateOperation
{
public const string Symbol = "l";
public string Operator => Symbol;
public PdfPoint End { get; }
public AppendStraightLineSegment(decimal x, decimal y)
{
End = new PdfPoint(x, y);
}
public override string ToString()
{
return $"{End.X} {End.Y} {Symbol}";
}
}
}