The line command draws and finds lines in ℝ2 and ℝ3.
line(2*y+x-1=0) |
line(y=1) |
line(x=1) |
line(x+2*y+z-1=0,z=2) |
line(y=1,x=1) |
line defines an oriented line:
When the plane equation is rewritten as lhs−rhs=ax+by+cz+d=0, then 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] |