Perpendicular lines in the plane

### 26.6.6 Perpendicular lines in the plane

See Section 27.4.6 for perpendicular lines in space.

The perpendicular command finds a line perpendicular to a given line.

- perpendicular takes two arguments:
  - p, a point.
  - ℓ, a line. The line can also be specified by giving a sequence of two points on it.
- perpendicular(p,ℓ) returns and draws the line perpendicular to ℓ passing through p.

#### Example

L:=line(1,i,color=blue); perpendicular(0,L,color=orange)

or:

line(1,i,color=blue); perpendicular(0,1,i,color=orange)