diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-27 04:36:50 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-27 04:36:50 +0400 |
commit | 857dedbc584fcf0af0afa13f008377fd9a83dad1 (patch) | |
tree | 1a6d3fa834658422032f4de3140472b82a8cbfa6 /source/blender/blenlib/intern/noise.c | |
parent | 822362189badefd6c0014f608d36d98e8ab57282 (diff) |
style cleanup
Diffstat (limited to 'source/blender/blenlib/intern/noise.c')
-rw-r--r-- | source/blender/blenlib/intern/noise.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/noise.c b/source/blender/blenlib/intern/noise.c index cad4addc87b..e01d2061743 100644 --- a/source/blender/blenlib/intern/noise.c +++ b/source/blender/blenlib/intern/noise.c @@ -1134,15 +1134,18 @@ static float turbulencep(float noisesize, float x, float y, float z, int nr) /* Camberra omitted, didn't seem useful */ /* distance squared */ -static float dist_Squared(float x, float y, float z, float e) { +static float dist_Squared(float x, float y, float z, float e) +{ (void)e; return (x * x + y * y + z * z); } /* real distance */ -static float dist_Real(float x, float y, float z, float e) { +static float dist_Real(float x, float y, float z, float e) +{ (void)e; return sqrtf(x * x + y * y + z * z); } /* manhattan/taxicab/cityblock distance */ -static float dist_Manhattan(float x, float y, float z, float e) { +static float dist_Manhattan(float x, float y, float z, float e) +{ (void)e; return (fabsf(x) + fabsf(y) + fabsf(z)); } /* Chebychev */ |