/////////////////////////////////////////////////////////////////////// // // Intersection of a vector with a sphere. Given two points, ra and rb, // with ra inside the sphere of radius SphRad, this function finds the // point at which the vector from ra to rb intersects the sphere. // // Author: W. Heintzelman // // REVISION HISTORY: // 02/12/2014 : W. Heintzelman - New file // //////////////////////////////////////////////////////////////////////// #ifndef __RAT_SphereCrossPoint__ #define __RAT_SphereCrossPoint__ #include namespace RAT { TVector3 SphereCrossPoint(double SphRad,TVector3& ra,TVector3& rb) ; } // namespace RAT #endif