]> granicus.if.org Git - graphviz/commitdiff
smyrna: remove unused 'point_within_ellips_with_coords'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 19 Sep 2021 17:19:37 +0000 (10:19 -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 eb5631421faac3e0464b9463c78dd2677ce6852f..26fcc43995eb894369cec66f77e0d95707a407d8 100644 (file)
@@ -219,18 +219,6 @@ glCompPoint getPointFromStr(char* str)
     return p;
 }
 
-int point_within_ellips_with_coords(float ex, float ey, float ea, float eb,
-                                   float px, float py)
-{
-
-    float dx, dy;
-    float a;
-    dx = px - ex;
-    dy = py - ey;
-    a = (dx * dx) / (ea * ea) + (dy * dy) / (eb * eb);
-    return (a <= 1);
-}
-
 int point_in_polygon(glCompPoly* selPoly,glCompPoint p)
 {
     int npol=selPoly->cnt;
index 3cd5af6dcea543483dfd214b48b602bf53b76c53..1d1ff2eb69d6a883e95b8b411fa72fd2f2ce9a4c 100644 (file)
@@ -25,6 +25,3 @@ extern void setColor(glCompColor* c,GLfloat R,GLfloat G,GLfloat B,GLfloat A);
 extern void getcolorfromschema(colorschemaset * sc, float l, float maxl,glCompColor * c);
 extern glCompPoint getPointFromStr(char* str);
 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);