drawLineSegments

@JvmName(name = "drawLineSegments3d")
fun drawLineSegments(drawContext: DrawContext, drawStyle: DrawStyle, segments: List<Vector3>)(source)

Draws a series of line segments in 3D space using the specified drawing context and style.

This function processes a list of 3D vectors that represent the vertices of the line segments. Each pair of consecutive vectors in the list defines a single line segment. The drawing operation utilizes the provided DrawContext for its transformation matrices and the DrawStyle to apply appearance settings such as color, stroke weight, and additional visual properties.

Parameters

drawContext

The drawing context containing transformation matrices and settings for rendering.

drawStyle

The style parameters that define the appearance of the line segments.

segments

A list of 3D vectors representing the points used to define the line segments. Consecutive pairs of points form individual line segments.


fun drawLineSegments(drawContext: DrawContext, drawStyle: DrawStyle, segments: List<Vector2>)(source)

Draws a series of line segments using the given drawing context and style.

This function takes a list of 2D points that represent the vertices of the line segments. Consecutive pairs of points in the list define individual line segments. The method uses the specified drawing context and style to render the lines.

Parameters

drawContext

The drawing context containing transformation matrices and settings for rendering.

drawStyle

The style parameters that define the appearance of the line segments, such as color and stroke weight.

segments

A list of 2D points representing the vertices of the line segments. Each pair of consecutive points defines one line segment.