Version 0.59.0

line_to

Straight connection to a point.

Signatures

  •   line_to( vector p )

Details

This curve segments adds a straight line towards point p to a curve.

Remark

A short-hand notation for the line_to() segment exists that is to write only the target point p (see example).

Example

 curve c1 = <[0,0]> -> line_to( <[1,1]> )
 curve c2 = <[0,0]> -> <[1,1]>      // Short-hand notation - this is equal to c1
 

Parameters

p

The target point a straight line is drawn to.

See also

🗙

Search results for