Previous Up Next

14.5.1  Lines and directed lines in space: line

See Section 13.7.1 for lines in the plane.

The line command returns and draws a directed line. It can take its arguments in different ways.

Two points:


Example.
Input:

line([0,3,0],point(3,0,3))

Output:


A point and a direction vector.


Example.
Input:

line([0,3,0],[3,0,3])

Output:


Two planes.

The direction of this line is given by the cross-product of the normals for the planes. For example, the intersection of the planes x=y (normal (1,−1,0)) and y=z (normal (0,1,−1)) will be (1,−1,0)× (0,1,−1) = (1,1,1).


Example.
Input:

line(x=y, y=z)

Output:


Previous Up Next