Was this sample code offered by SGI, or a tutorial used in their training courses? I understand you worked on it on SGI gear, but what's the source of the association? Might help point to a source...
Sounds like what these fellows did in Java on these pages
There's a simulation of this (and several other things) using Matlab here
Alan Nathan at University of Illinois has done a lot of baseball physics
work - a quick look at the first few pages show simulations, papers, etc.
If you have access to IEEE papers online, or via a library, this paper
seems to cover the subject pretty thoroughly.