Mar
12
2009
14
Mar
10
2009
0

Code: Shortest distance between any two line segments

I recently needed to find the shortest distance between any two line segments in 3D space.

I managed to find some C++ code online at http://softsurfer.com/Archive/algorithm_0106/algorithm_0106.htm which I converted to C#.

It’s fairly easy to use. If you only need it for 2D space, just set the Z values to 0.

Please post a comment if you find this useful.
(more…)

Written by John Burns in: C# Tips |
Mar
05
2009
2

Satellite Collision – Google Earth KMZ File

Including the original two satellites, the collision between COSMOS 2251 and IRIDIUM 33 has so far resulted in 514 pieces of debris. these are slowly spreading out around the planet.

I’ve created a google earth file of the debris could.

Coogle Earth kmz file

Or you can view it in google maps at this link:
http://maps.google.com/?q=http://www.john.geek.nz/wp-content/uploads/2009/03/debris_20090305120000utc.kmz

Written by John Burns in: Astronomy |