1using System.Threading.Tasks;
17 : base(Document, Parent)
34 return new ConicTo(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)
108 float w2 = this.weight * 2;
109 float dx = w2 * (P1.X - P0.X);
110 float dy = w2 * (P1.Y - P0.Y);
126 public bool TryGetEnd(out
float X, out
float Y, out
float Direction)
128 float w2 = this.weight * 2;
129 float dx = w2 * (P2.X - P1.X);
130 float dy = w2 * (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).
float yCoordinate2
Measured Y-coordinate
float xCoordinate2
Measured X-coordinate
Abstract base class for layout elements with two points and a weight.
float weight
Measured weight
float yCoordinate
Measured Y-coordinate
float xCoordinate
Measured X-coordinate
Interface for directed elements.
Base interface for all layout elements.