1using System.Threading.Tasks;
17 : base(Document, Parent)
50 return Task.CompletedTask;
63 this.P0 =
Path.LastPoint;
72 return Task.CompletedTask;
97 public bool TryGetStart(out
float X, out
float Y, out
float Direction)
99 float dx = P1.X - P0.X;
100 float dy = P1.Y - P0.Y;
116 public bool TryGetEnd(out
float X, out
float Y, out
float Direction)
118 float dx = P2.X - P1.X;
119 float dy = P2.Y - P1.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).
Abstract base class for layout elements with two points.
float yCoordinate2
Measured Y-coordinate
float xCoordinate2
Measured X-coordinate
float yCoordinate
Measured Y-coordinate
float xCoordinate
Measured X-coordinate
Interface for directed elements.
Base interface for all layout elements.