Table of Contents

Constructor Line2D

Namespace
Pinwheel.Vista.Geometric
Assembly
Pinwheel.Vista.Runtime.dll

Line2D(Vector2, Vector2)

Creates a segment from two endpoints.

public Line2D(Vector2 start, Vector2 end)

Parameters

start Vector2

The segment start point.

end Vector2

The segment end point.

Line2D(float, float, float, float)

Creates a segment from four coordinates.

public Line2D(float x1, float y1, float x2, float y2)

Parameters

x1 float

The X coordinate of the start point.

y1 float

The Y coordinate of the start point.

x2 float

The X coordinate of the end point.

y2 float

The Y coordinate of the end point.