Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
TurnTowardsRel.cs
1using System.Threading.Tasks;
2using SkiaSharp;
3
5{
10 {
17 : base(Document, Parent)
18 {
19 }
20
24 public override string LocalName => "TurnTowardsRel";
25
32 public override ILayoutElement Create(Layout2DDocument Document, ILayoutElement Parent)
33 {
34 return new TurnTowardsRel(Document, Parent);
35 }
36
43 {
44 if (this.defined)
46
47 return Task.CompletedTask;
48 }
49
56 public Task Draw(DrawingState State, PathState PathState, SKPath Path)
57 {
58 if (this.defined)
60
61 return Task.CompletedTask;
62 }
63 }
64}
Contains a 2D layout document.
void TurnTowardsRel(float DeltaX, float DeltaY)
Turns the current direction towards a given point, relative to the current point.
Definition: PathState.cs:262
Turns the current direction towards a point, relative to the current point.
Task Draw(DrawingState State, PathState PathState, SKPath Path)
Draws layout entities.
TurnTowardsRel(Layout2DDocument Document, ILayoutElement Parent)
Turns the current direction towards a point, relative to the current point.
override string LocalName
Local name of type of element.
Task Measure(DrawingState State, PathState PathState)
Measures layout entities and defines unassigned properties.
override ILayoutElement Create(Layout2DDocument Document, ILayoutElement Parent)
Creates a new instance of the layout element.
bool defined
If element is well-defined.
Abstract base class for layout elements with one point.
Definition: Point.cs:11
float yCoordinate
Measured Y-coordinate
Definition: Point.cs:122
float xCoordinate
Measured X-coordinate
Definition: Point.cs:117
Base interface for all layout elements.