Revision a61c970f
utility/vector.h | ||
---|---|---|
95 | 95 |
void normalize() |
96 | 96 |
{ |
97 | 97 |
double mag = magnitude(); |
98 |
if(abs(mag) <= 0.0001)
|
|
98 |
if (fabs(mag) <= 0.0001)
|
|
99 | 99 |
return; |
100 | 100 |
|
101 | 101 |
int i; |
Also available in: Unified diff