Revision 3e12eaa8

View differences:

utility/vector.h
86 86

  
87 87
        if(isnan(res))
88 88
            return 0;
89
        if((fabs(res-1)) >= 0.000001) // Avoid a sqrt if possible.
90
            return sqrt(res);
91
        return 1;
89
        return sqrt(res);
92 90
    }
93 91

  
94 92
    void normalize()

Also available in: Unified diff