]> git.mxchange.org Git - flightgear.git/blobdiff - src/Scenery/hitlist.hxx
General cleanups to cut cross-dependencies and speed up compilation.
[flightgear.git] / src / Scenery / hitlist.hxx
index 0fa5d74651a2074f91f80c56770a8c0e90bdac2d..f76361653c3c3c16e8899f19237bebc316aa5548 100644 (file)
@@ -75,22 +75,12 @@ public:
 };
 
 
-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