See Section 27.11.4 for checking for perpendicularity in 3D geometry.
The is_perpendicular command determines whether or not two lines are perpendicular.