~ubuntu-branches/ubuntu/wily/grass/wily

« back to all changes in this revision

Viewing changes to raster/r.los/color_rnge.c

Tags: 7.0.0~rc1+ds1-1~exp1
* New upstream release candidate.
* Repack upstream tarball, remove precompiled Python objects.
* Add upstream metadata.
* Update gbp.conf and Vcs-Git URL to use the experimental branch.
* Update watch file for GRASS 7.0.
* Drop build dependencies for Tcl/Tk, add build dependencies:
  python-numpy, libnetcdf-dev, netcdf-bin, libblas-dev, liblapack-dev
* Update Vcs-Browser URL to use cgit instead of gitweb.
* Update paths to use grass70.
* Add configure options: --with-netcdf, --with-blas, --with-lapack,
  remove --with-tcltk-includes.
* Update patches for GRASS 7.
* Update copyright file, changes:
  - Update copyright years
  - Group files by license
  - Remove unused license sections
* Add patches for various typos.
* Fix desktop file with patch instead of d/rules.
* Use minimal dh rules.
* Bump Standards-Version to 3.9.6, no changes.
* Use dpkg-maintscript-helper to replace directories with symlinks.
  (closes: #776349)
* Update my email to use @debian.org address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
/****************************************************************/
3
 
/*                                                              */
4
 
/*      decide_color_range.c    in      ~/src/Glos              */
5
 
/*                                                              */
6
 
/*      This function calculates the factor that should be      */
7
 
/*      used to multiply every visible point's inclination      */
8
 
/*      so that the full color range could be utilized. It      */
9
 
/*      takes as input the max inclination and returns the      */
10
 
/*      color factor.                                           */
11
 
/*                                                              */
12
 
 
13
 
/****************************************************************/
14
 
 
15
 
 
16
 
double
17
 
decide_color_range(double max_inclination, double COLOR_SHIFT,
18
 
                   double COLOR_MAX)
19
 
{
20
 
    int i;
21
 
 
22
 
    i = max_inclination + 0.99;
23
 
    return ((COLOR_MAX - COLOR_SHIFT) / i);
24
 
}
25
 
 
26
 
/************* END OF FUNCTION "DECIDE_COLOR_FACTOR" ************/