diff options
Diffstat (limited to 'source/blender/blenlib/intern/jitter.c')
-rw-r--r-- | source/blender/blenlib/intern/jitter.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/source/blender/blenlib/intern/jitter.c b/source/blender/blenlib/intern/jitter.c index fbdf698cc87..afe31fb1377 100644 --- a/source/blender/blenlib/intern/jitter.c +++ b/source/blender/blenlib/intern/jitter.c @@ -1,7 +1,4 @@ /* - * Jitter offset table - * - * * ***** BEGIN GPL LICENSE BLOCK ***** * * This program is free software; you can redistribute it and/or @@ -30,9 +27,9 @@ /** \file blender/blenlib/intern/jitter.c * \ingroup bli + * \brief Jitter offset table */ - #include <math.h> #include <string.h> #include "MEM_guardedalloc.h" @@ -43,7 +40,7 @@ void BLI_jitterate1(float *jit1, float *jit2, int num, float rad1) { - int i , j , k; + int i, j, k; float vecx, vecy, dvecx, dvecy, x, y, len; for (i = 2*num-2; i>=0 ; i-=2) { @@ -96,7 +93,7 @@ void BLI_jitterate1(float *jit1, float *jit2, int num, float rad1) jit2[i] = x; jit2[i+1] = y; } - memcpy(jit1,jit2,2 * num * sizeof(float)); + memcpy(jit1, jit2, 2 * num * sizeof(float)); } void BLI_jitterate2(float *jit1, float *jit2, int num, float rad2) @@ -135,11 +132,11 @@ void BLI_jitterate2(float *jit1, float *jit2, int num, float rad2) jit2[i] = x; jit2[i+1] = y; } - memcpy(jit1,jit2,2 * num * sizeof(float)); + memcpy(jit1, jit2, 2 * num * sizeof(float)); } -void BLI_initjit(float *jitarr, int num) +void BLI_jitter_init(float *jitarr, int num) { float *jit2, x, rad1, rad2, rad3; int i; |