]> granicus.if.org Git - graphviz/commitdiff
smyrna: remove unused 'point_within_sphere_with_coords'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 19 Sep 2021 17:18:51 +0000 (10:18 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 25 Sep 2021 16:17:46 +0000 (09:17 -0700)
cmd/smyrna/smyrna_utils.c
cmd/smyrna/smyrna_utils.h

index 15a52125499553f38ed8f1566d4c774dab4010f5..eb5631421faac3e0464b9463c78dd2677ce6852f 100644 (file)
@@ -230,16 +230,6 @@ int point_within_ellips_with_coords(float ex, float ey, float ea, float eb,
     a = (dx * dx) / (ea * ea) + (dy * dy) / (eb * eb);
     return (a <= 1);
 }
-int point_within_sphere_with_coords(float x0, float y0, float z0, float r,
-                                   float x, float y, float z)
-{
-    float rr =
-       (x - x0) * (x - x0) + (y - y0) * (y - y0) + (z - z0) * (z - z0);
-    rr = (float) pow(rr, 0.5);
-    if (rr <= r)
-       return 1;
-    return 0;
-}
 
 int point_in_polygon(glCompPoly* selPoly,glCompPoint p)
 {
index f33eba6119529eec96e895e1b38362146726773a..3cd5af6dcea543483dfd214b48b602bf53b76c53 100644 (file)
@@ -28,6 +28,3 @@ extern int point_in_polygon(glCompPoly* selPoly,glCompPoint p);
 extern int point_within_ellips_with_coords(float ex, float ey,
                                               float ea, float eb,
                                               float px, float py);
-extern int point_within_sphere_with_coords(float x0, float y0, float z0,
-                                       float r, float x, float y,
-                                       float z);