See section 12.16.12 for checking for perpendicularity in two-dimensional geometry.
The is_perpendicular command takes as arguments two lines, two planes or a line and a plane.
is_perpendicular returns 1 is the objects are perpendicular; it returns 0 otherwise. (Note that two lines must be coplanar to be perpendicular.)
Input:
Output:
Input:
then:
Output:
Input:
then:
Output: