Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
TurnTowards.cs
1using System.Threading.Tasks;
2using SkiaSharp;
3
5{
9 public class TurnTowards : Point, ISegment
10 {
17 : base(Document, Parent)
18 {
19 }
20
24 public override string LocalName => "TurnTowards";
25
32 public override ILayoutElement Create(Layout2DDocument Document, ILayoutElement Parent)
33 {
34 return new TurnTowards(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 TurnTowards(float X, float Y)
Turns the current direction towards a given point.
Definition: PathState.cs:254
Turns the current direction towards a point.
Definition: TurnTowards.cs:10
override ILayoutElement Create(Layout2DDocument Document, ILayoutElement Parent)
Creates a new instance of the layout element.
Definition: TurnTowards.cs:32
Task Draw(DrawingState State, PathState PathState, SKPath Path)
Draws layout entities.
Definition: TurnTowards.cs:56
Task Measure(DrawingState State, PathState PathState)
Measures layout entities and defines unassigned properties.
Definition: TurnTowards.cs:42
override string LocalName
Local name of type of element.
Definition: TurnTowards.cs:24
TurnTowards(Layout2DDocument Document, ILayoutElement Parent)
Turns the current direction towards a point.
Definition: TurnTowards.cs:16
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.