SceneLine Class

A straight line segment.

public sealed class SceneLine : SceneShape
Inheritance
SceneShape SceneLine

Constructors

NameDescription
SceneLine(double, double, double, double)A straight line segment.

SceneLine(double, double, double, double)

SceneLine.cs

A straight line segment.

public SceneLine(double x1, double y1, double x2, double y2)

Parameters

x1 double
The x coordinate of the start.
y1 double
The y coordinate of the start.
x2 double
The x coordinate of the end.
y2 double
The y coordinate of the end.

Properties

NameDescription
MarkerEndGets or sets the marker drawn on the last vertex of the line, or null for none.
MarkerStartGets or sets the marker drawn on the first vertex of the line, or null for none.
X1Gets the x coordinate of the start.
X2Gets the x coordinate of the end.
Y1Gets the y coordinate of the start.
Y2Gets the y coordinate of the end.

MarkerEnd

SceneLine.cs

Gets or sets the marker drawn on the last vertex of the line, or null for none.

public SceneMarker? MarkerEnd { get; set; }

Property value

SceneMarker?

MarkerStart

SceneLine.cs

Gets or sets the marker drawn on the first vertex of the line, or null for none.

public SceneMarker? MarkerStart { get; set; }

Property value

SceneMarker?

Gets the x coordinate of the start.

public double X1 { get; }

Property value

double

Gets the x coordinate of the end.

public double X2 { get; }

Property value

double

Gets the y coordinate of the start.

public double Y1 { get; }

Property value

double

Gets the y coordinate of the end.

public double Y2 { get; }

Property value

double