Distance 2D/3D• Distance[point1, point2] returns the absolute distance between the two points. • Distance[point1, point2] returns the same result as Magnitude[point1, point2]. • See also: DDistanceDT, D2DistanceDT2. Further Examples Load the Modeler2D package and define a simple model. If the distance between two points is calculated simply as the magnitude of the vector between the two points, then some obvious simplifications are missed, like the fact that the two points lie on the same body.
Out[2]= | |
Out[3]= | |
Out[4]= | |
Distance checks for such simplifications.
Out[5]= | |
DDistanceDT assumes that c is constant in the following, while direct differentiation with Dt cannot.
Out[6]= | |
Out[7]= | |
Similarly, D2DistanceDT2 assumes that local point coordinates are constant.
Out[8]= | |
|