See section 13.12.7 for distances in three-dimensional geometry.
The distance command takes two arguments; either two points or two geometric objects.
distance returns the distance between the two arguments.
Input:
Output:
Input:
Output:
Input:
Output:
Note that when the distance calculation uses parameters, Xcas
must be in real mode. In real mode:
Input:
and then:
Output:
In complex mode:
Input:
and then:
Output:
The distance command has distanceat and distanceatraw versions (see section 12.14.1).