Skip to main content

line()

Draws a line between two points. The statement is a solver entity whose literals are guesses — .start(), .end() and .mid() reference its points in constraints.

Returns: SolvedLine

tip

See the guide for detailed usage examples.

Signatures​

line(start: Point2DLike, end: Point2DLike): SolvedLine

Draws a line between two points. The statement is a solver entity whose literals are guesses — .start(), .end() and .mid() reference its points in constraints.

ParameterTypeDescription
startPoint2DLikeThe start point
endPoint2DLikeThe end point