Previous Up Next

27.11.5  Checking whether two lines or two spheres in space are orthogonal

See Section 26.15.13 for checking for orthogonality in 2D geometry.

The is_orthogonal command determines whether or not two objects are orthogonal.

Examples

is_orthogonal(line([2,3,-2],[-1,-1,-1]),line([1,0,0],[1,2,8]))
     
1           
is_orthogonal(line([2,3,-2],[-1,-1,-1]),plane([-1,-1,-1],[-1,0,3],[-2,0,0]))
     
1           
is_orthogonal(plane([0,0,0],[1,2,-3],[1,1,-2]),plane([-1,-1,-1],[1,2,-3],[0,0,0]))
     
1           
is_orthogonal(sphere([0,0,0],sqrt(2)),sphere([2,0,0],sqrt(2)))
     
1           

Previous Up Next