Package code


Examples:

In[]:=
DistanceBetweenLines[{5,-4,3},{2,1,1},{7,7,9},{2,1,1},{-10,10}]
The distance between the parallel lines is:
d = 5
7
2
u
Out[]=
In[]:=
DistanceBetweenLinesThatAreCut[{5,8,-1},{9,-2,-3},{6,-5,4},{7,2,-4},{-10,10}]
The distance between the lines that are cut is:
d =
21
17
5
u
Out[]=
In[]:=
DistancePointPlane[5,-4,3,-2,{5,5,5},15]
The distance between the point and the plane is:
d =
9
2
5
u
Out[]=
In[]:=
DistancePointLine[{2,-3,1},{2,6,-3},{2,2,2}]
The distance between point P and the line is:
d =
545
7
u
Out[]=
In[]:=
DistanceBetweenPlanes[2,-4,5,-7,2,-4,5,15,{-10,10},{-20,20}]
The distance between the parallel planes is:
d =
22
3
5
u
Out[]=
In[]:=
DistanceTwoPoints[{5,-4,3},{7,0,5}]
The distance between the two points:
d = 2
6
u
Out[]=