Wilang Documentation1.0.0+4

segment#

Draw a finite segment between two points.

Available in: math cells.

Syntax#

segment(a, b)

Arguments and behavior#

Each point is a two-element array. The segment includes both endpoints and has no interior, so a fill request is reported as a warning instead of closing the path.

Example#

Edit the inputs, then use Run or Reset. Changes stay in this example.

Example
plot(segment([-3, 0], [3, 0]))

Expected result: plot.

See also#

plot

All functions · Math guides