};
-inline void FGHitList::Intersect( ssgBranch *scene,
- sgdVec3 orig, sgdVec3 dir )
-{
- sgdMat4 m;
-
- init();
-
- if( last_hit() ) {
- sgdMakeIdentMat4 ( m ) ;
- IntersectCachedLeaf(m, orig, dir);
- }
- if( ! num_hits() ) {
- clear();
- sgdMakeIdentMat4 ( m ) ;
- IntersectBranch( scene, m, orig, dir);
- }
-}
-
-
// Associated function, assuming a wgs84 world with 0,0,0 at the
// center, find the current terrain intersection elevation for the
// point specified.