1using System.Threading.Tasks;
17 : base(Document, Parent)
34 return new CubicTo(Document, Parent);
51 return Task.CompletedTask;
64 this.P0 =
Path.LastPoint;
75 return Task.CompletedTask;
105 public bool TryGetStart(out
float X, out
float Y, out
float Direction)
115 float dx = P1.X - P0.X;
116 float dy = P1.Y - P0.Y;
132 public bool TryGetEnd(out
float X, out
float Y, out
float Direction)
134 float dx = P3.X - P2.X;
135 float dy = P3.Y - P2.Y;
Contains a 2D layout document.
bool defined
If element is well-defined.
static float CalcDirection(float x1, float y1, float x2, float y2)
Calculates the direction of the pen when drawing from (x1,y1) to (x2,y2).
float yCoordinate2
Measured Y-coordinate
float xCoordinate2
Measured X-coordinate
Abstract base class for layout elements with three points.
float xCoordinate3
Measured X-coordinate
float yCoordinate3
Measured Y-coordinate
float yCoordinate
Measured Y-coordinate
float xCoordinate
Measured X-coordinate
Interface for directed elements.
Base interface for all layout elements.