]> granicus.if.org Git - postgis/commitdiff
Remove un-used function from testing.
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 29 Sep 2009 14:40:48 +0000 (14:40 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 29 Sep 2009 14:40:48 +0000 (14:40 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4544 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwgeodetic.c
liblwgeom/lwgeodetic.h

index 7eedc0331da2f1f09ee8645a51a386e5029f2b72..3318cdce2a896793a7137be8950f926121ec14c6 100644 (file)
@@ -242,32 +242,6 @@ int edge_point_in_cone(GEOGRAPHIC_EDGE e, GEOGRAPHIC_POINT p)
        return LW_FALSE;
 }
 
-/**
-* Returns true if the point p is inside both the cones defined by the 
-* two ends of the edge e.
-(*/
-int edge_point_in_cones(GEOGRAPHIC_EDGE e, GEOGRAPHIC_POINT p)
-{
-       POINT3D vp, vs, ve;
-       double vs_dot_ve, vp_dot_ve, vp_dot_vs;
-       geog2cart(e.start, &vs);
-       geog2cart(e.end, &ve);
-       geog2cart(p, &vp);
-       vs_dot_ve = dot_product(vs, ve);
-       vp_dot_ve = dot_product(vs, vp);
-       vp_dot_vs = dot_product(ve, vp);
-       LWDEBUGF(4, "vs_dot_ve = %.9g",vs_dot_ve);
-       LWDEBUGF(4, "vp_dot_ve = %.9g",vp_dot_ve);
-       LWDEBUGF(4, "vp_dot_vs = %.9g",vp_dot_vs);
-       if( vp_dot_vs > vs_dot_ve && vp_dot_ve > vs_dot_ve )
-       {
-               LWDEBUG(4, "point is in both cones");
-               return LW_TRUE;
-       }
-       LWDEBUG(4, "point is not in cones");
-       return LW_FALSE;
-}
-
 /**
 * True if the longitude of p is within the range of the longitude of the ends of e
 */
index 2c9c724ffd582d4acf5cddb1a25680623e55b26b..5450b7a79a5c1160ae564627b630d452c1ca29aa 100644 (file)
@@ -49,7 +49,6 @@ void x_to_z(POINT3D *p);
 void y_to_z(POINT3D *p);
 int edge_point_on_plane(GEOGRAPHIC_EDGE e, GEOGRAPHIC_POINT p);
 int edge_point_in_cone(GEOGRAPHIC_EDGE e, GEOGRAPHIC_POINT p);
-int edge_point_in_cones(GEOGRAPHIC_EDGE e, GEOGRAPHIC_POINT p);
 int edge_contains_longitude(GEOGRAPHIC_EDGE e, GEOGRAPHIC_POINT p);
 int edge_contains_point(GEOGRAPHIC_EDGE e, GEOGRAPHIC_POINT p);
 double z_to_latitude(double z);