};
-inline void FGHitList::Intersect( ssgBranch *scene,
- sgdVec3 orig, sgdVec3 dir )
-{
- sgdMat4 m;
+// Associated function, assuming a wgs84 world with 0,0,0 at the
+// center, find the current terrain intersection elevation for the
+// point specified.
+bool fgCurrentElev( sgdVec3 abs_view_pos, sgdVec3 scenery_center,
+ FGHitList *hit_list,
+ double *terrain_elev, double *radius, double *normal );
- init();
-
- if( last_hit() ) {
- sgdMakeIdentMat4 ( m ) ;
- IntersectCachedLeaf(m, orig, dir);
- }
- if( ! num_hits() ) {
- clear();
- sgdMakeIdentMat4 ( m ) ;
- IntersectBranch( scene, m, orig, dir);
- }
-}
#endif // _HITLIST_HXX