3D Distance
Description
This applet illustrates the distance between 2 points in three-dimensions. The two points A and B can be moved in the 3D view. When the point shows a four arrow cross it can be moved parallel to the x-y plane. Two opposite arrows allow point movement parallel to the z axis. Change the movement mode by selecting the point.
The left view shows the coordinates of the points as (x,y,z) arrays. The distance in each coordinate direction is then shown as . Then the length is calculated from the 3D Pythagorean theorem.
An additional value of the unit vector which indicates the direction of the vector by dividing the coordinate distances by the total length is also shown.
Two check boxes allow you to display the coordinate path from A to B and the unit vector in the three dimensional view.