lineSegment

fun lineSegment(x0: Double, y0: Double, x1: Double, y1: Double)(source)

Draws a line segment between two points in a 2D space.

Parameters

x0

The x-coordinate of the starting point of the line segment.

y0

The y-coordinate of the starting point of the line segment.

x1

The x-coordinate of the ending point of the line segment.

y1

The y-coordinate of the ending point of the line segment.


fun lineSegment(lineSegment: LineSegment)(source)

Draws a line segment using the specified LineSegment.

Parameters

lineSegment

The LineSegment object containing the start and end points of the line segment.


fun lineSegment(start: Vector2, end: Vector2)(source)

Draws a line segment from start to end using 2d coordinates


fun lineSegment(start: Vector3, end: Vector3)(source)

Draws a line segment from start to end using 3d coordinates