Skip to content

jitx/shapes/Line

Package name: jitx/shapes/Line

Summary

Line

Line

Functions

Function Description
Line Create a line from a sequence of points and/or other nested sequences of points.

Definitions

Line

Line

public defstruct Line <: Shape & HasMetaUtils :
    points: Tuple<Point>
    width: Double

  • points: Tuple<Point> - Points along this line's centerline. Must be at least 2 points.

  • width: Double - Thickness of this line. Must be non-negative.

A thick polyline consisting of one or more straight line segments. Has a width (thickness) and a tuple of points along its centerline.

Functions

Line

Create a line from a sequence of points and/or other nested sequences of points.

public defn Line (width:Double, pts:Seqable<Shape|Seqable>)

  • pts: Seqable<Shape|Seqable> - The sequence of points and/or nested sequences of points to make the line from.

The sequence is "flattened" first to create the tuple of points used.

Related Packages

Forwarded by packages: jitx/shapes, jitx