Class Line2D
- Namespace
- AstraEngine.DrawLine
- Assembly
- AstraEngine.Canvas2D.dll
Represents a Line that can be drawn in 2D space
public class Line2D : Drawable
- Inheritance
-
Line2D
- Inherited Members
Properties
Color
The color of this line
public Color Color { get; set; }
Property Value
End
The End of this line
public required Position2D End { get; set; }
Property Value
Start
The start of this line
public required Position2D Start { get; set; }
Property Value
Width
The width of this line
public double Width { get; set; }
Property Value
Methods
Draw(ICanvas2D)
Renders this Drawable.
public override void Draw(ICanvas2D renderer)
Parameters
rendererICanvas2DThe renderer to use