The line command draws and finds lines in ℝ2 and ℝ3.
For a line in ℝ2:
Examples.
For a line in ℝ3:
Examples.
Remark
line defines an oriented line:
When the plane equation is rewritten as lhs-rhs=ax+by+cz+d=0 the normal is [a,b,c]. For example, line(x=y,y=z) draws the line x−y=0,y−z=0 and its direction is:
[1,−1,0]× [0,1,−1]=[1,1,1] |