~ubuntu-branches/ubuntu/lucid/graphviz/lucid-updates

« back to all changes in this revision

Viewing changes to lib/neatogen/neatosplines.c

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2008-06-19 20:23:23 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080619202323-ls23h96ntj9ny94m
Tags: 2.18-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Build depend on liblualib50-dev instead of liblua5.1-0-dev.
  - Drop libttf-dev (libttf-dev is in universe) (LP: #174749).
  - Replace gs-common with ghostscript.
  - Build-depend on python-dev instead of python2.4-dev or python2.5-dev.
  - Mention the correct python version for the python bindings in the
    package description.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: neatosplines.c,v 1.26 2007/10/29 21:20:56 erg Exp $ $Revision: 1.26 $ */
 
1
/* $Id: neatosplines.c,v 1.27 2008/03/03 23:01:52 ellson Exp $ $Revision: 1.27 $ */
2
2
/* vim:set shiftwidth=4 ts=8: */
3
3
 
4
4
/**********************************************************
505
505
                polyp.y = poly->vertices[j].y * SEP;
506
506
            } else {
507
507
                double c, s;
508
 
                c = cos(2.0 * PI * j / sides + adj);
509
 
                s = sin(2.0 * PI * j / sides + adj);
 
508
                c = cos(2.0 * M_PI * j / sides + adj);
 
509
                s = sin(2.0 * M_PI * j / sides + adj);
510
510
                polyp.x = SEP * c * (ND_lw_i(n) + ND_rw_i(n)) / 2.0;
511
511
                polyp.y = SEP * s * ND_ht_i(n) / 2.0;
512
512
            }