__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: .60929__i__ + 2.00000__j__ + 2.76202__k__

beacon 2: -.46707__i__ + 4.00000__j__ + 4.44768__k__

beacon 3: -.46707__i__ + 2.00000__j__ + 4.44768__k__

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.900337__i__ + 4.00000__j__ + 4.22495__k__

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