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
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.

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