Refactored CollisionDetection to use a ProjectionTransformation class.
This also simplifies Testing and debugging.  Corrected error in the
CollisionDetection sanity checker.