Previous Up Next

11.16.11  Check it two lines are parallel: is_parallel

The is_parallel command is a Boolean function which takes as argument two lines.

is_parallel returns 1 if the lines are parallel and returns 0 otherwise.
Input:

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

Output:

1

Output:

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

Output:

0

Previous Up Next