pike.git / lib / modules / Graphics.pmod / Graph.pmod / polyline.pike

version» Context lines:

pike.git/lib/modules/Graphics.pmod/Graph.pmod/polyline.pike:1: - /* -  * Graph sub-module providing draw functions. -  * $Id: polyline.pike,v 1.5 2003/08/22 14:26:26 nilsson Exp $ -  */ + //! Graph sub-module providing draw functions. + //! + //! $Id: polyline.pike,v 1.6 2003/11/22 15:00:54 grubba Exp $      #pike __REAL_VERSION__      #define CAP_BUTT 0   #define CAP_ROUND 1   #define CAP_PROJECTING 2      #define JOIN_MITER 0   #define JOIN_ROUND 1   #define JOIN_BEVEL 2
pike.git/lib/modules/Graphics.pmod/Graph.pmod/polyline.pike:16:      #define CAPSTEPS 10   #define JOINSTEPS 5         constant PI = 3.1415926535897932384626433832795080;      /*    * Some optimizations for the cappings.    * -  * /grubba (who got tired of BG beeing so slow) +  * /grubba (who got tired of BG being so slow)    */      static array(float) init_cap_sin_table()   {    array(float) s_t = allocate(CAPSTEPS);       for (int i = 0; i < CAPSTEPS; i++) {    s_t[i] = sin(PI*i/(CAPSTEPS-1));    }    return s_t;