Challenge 2: Shortest distance calculations

As you approach the space station, three beacons on the nearest face (at the corners of the triangle marked in white) transmit their coordinates to you:
beacon 1: .60929i + 2.00000j + 2.76202k
beacon 2: -.46707i + 4.00000j + 4.44768k
beacon 3: -.46707i + 2.00000j + 4.44768k
Wanting to keep track of how far away your shuttle is from the front plane of the space station you have coded a computer program which takes the positions of the beacons and the shuttle's position and returns the distance to the closest point on the nearest plane. At the instance the shuttle passes through the point:
shuttle: 2.900337i + 4.00000j + 4.22495k
what distance will the program register?

Determine the coordinates of the nearest point on the station and check that the line from this point to the shuttle is perpendicular.

Program to check distance from the plane of the space station

Program to represent the 3D geometry

To construct a line from the shuttle to the nearest point on the space station, first add vertices with the correct coordinates, then choose vertex "v1" from the list, type 2 in the box next to it and click "Add edge".
To change the camera position and direction choose the element you want to change from the drop down list, write the value you want to change it to in the text field on the right, then click the button in the middle. (I didn't consciously *try* to make it this unuser friendly - sorry:p)
Home