Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f30dc0a commit f2cc66bCopy full SHA for f2cc66b
1 file changed
src/path_converters.h
@@ -866,10 +866,10 @@ class Sketch
866
if (m_has_last) {
867
// We want the "cursor" along the sine wave to move at a
868
// random rate.
869
- float _drand48 = rand() / float(RAND_MAX);
870
- float _M_PI = 3.14159265358979323846;
871
- m_p += pow(m_randomness, _drand48 * 2.0 - 1.0);
872
- double r = sin(m_p / (m_length / (_M_PI * 2.0))) * m_scale;
+ double d_rand = rand() / double(RAND_MAX);
+ double d_M_PI = 3.14159265358979323846;
+ m_p += pow(m_randomness, d_rand * 2.0 - 1.0);
+ double r = sin(m_p / (m_length / (d_M_PI * 2.0))) * m_scale;
873
double den = m_last_x - *x;
874
double num = m_last_y - *y;
875
double len = num*num + den*den;
0 commit comments