Table of Contents

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

Color

End

The End of this line

public required Position2D End { get; set; }

Property Value

Position2D

Start

The start of this line

public required Position2D Start { get; set; }

Property Value

Position2D

Width

The width of this line

public double Width { get; set; }

Property Value

double

Methods

Draw(ICanvas2D)

Renders this Drawable.

public override void Draw(ICanvas2D renderer)

Parameters

renderer ICanvas2D

The renderer to use