~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/blender/blenlib/intern/vectorops.c

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2007-05-17 11:47:59 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20070517114759-yp4ybrnhp2u7pk66
Tags: 2.44-1
* New upstream release.
* Drop debian/patches/01_64bits_stupidity, not needed anymore: as of this
  version blender is 64 bits safe again. Adjust README.Debian accordingly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 * Always use
6
6
 * - vector with x components :   float x[3], int x[3], etc
7
7
 *
8
 
 * $Id: vectorops.c,v 1.3 2002/11/25 12:01:55 mein Exp $
 
8
 * $Id: vectorops.c,v 1.4 2007/04/04 13:18:28 campbellbarton Exp $
9
9
 *
10
10
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
11
11
 *
141
141
}
142
142
 
143
143
/* ------------------------------------------------------------------------- */
144
 
float MTC_normalise3DF(float n[3])
 
144
float MTC_normalize3DF(float n[3])
145
145
{
146
146
        float d;
147
147
        
148
148
        d= n[0]*n[0]+n[1]*n[1]+n[2]*n[2];
149
 
        /* FLT_EPSILON is too large! A larger value causes normalise errors in   */
 
149
        /* FLT_EPSILON is too large! A larger value causes normalize errors in   */
150
150
        /* a scaled down utah teapot                                             */
151
151
        if(d>0.0000000000001) {
152
152