PostGIS  2.2.7dev-r@@SVN_REVISION@@
static double interpolate_arc ( double  angle,
double  a1,
double  a2,
double  a3,
double  zm1,
double  zm2,
double  zm3 
)
static

Definition at line 80 of file lwstroke.c.

References LWDEBUGF.

Referenced by lwcircle_stroke().

81 {
82  LWDEBUGF(4,"angle %.05g a1 %.05g a2 %.05g a3 %.05g zm1 %.05g zm2 %.05g zm3 %.05g",angle,a1,a2,a3,zm1,zm2,zm3);
83  /* Counter-clockwise sweep */
84  if ( a1 < a2 )
85  {
86  if ( angle <= a2 )
87  return zm1 + (zm2-zm1) * (angle-a1) / (a2-a1);
88  else
89  return zm2 + (zm3-zm2) * (angle-a2) / (a3-a2);
90  }
91  /* Clockwise sweep */
92  else
93  {
94  if ( angle >= a2 )
95  return zm1 + (zm2-zm1) * (a1-angle) / (a1-a2);
96  else
97  return zm2 + (zm3-zm2) * (a2-angle) / (a2-a3);
98  }
99 }
#define LWDEBUGF(level, msg,...)
Definition: lwgeom_log.h:55

Here is the caller graph for this function: