### 26.15.12 Checking whether two lines in the plane are perpendicular

See Section 27.11.4 for checking for perpendicularity in 3D geometry.

The is_perpendicular command determines whether or not two lines are perpendicular.

- is_perpendicular takes two arguments: L1,L2, two lines.
- is_perpendicular(L1,L2) returns 1 if L1 and L2 are perpendicular and otherwise returns 0.

#### Examples

is_perpendicular(line(0,1+i),line(i,1))

1 |  |  |  |  |  |  |  |  |  |

is_parallel(line(0,1+i),line(1+i,1))

0 |  |  |  |  |  |  |  |  |  |