Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type correction: float -> double #2029

Merged
merged 1 commit into from May 20, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/path_converters.h
Expand Up @@ -866,10 +866,10 @@ class Sketch
if (m_has_last) {
// We want the "cursor" along the sine wave to move at a
// random rate.
float _drand48 = rand() / float(RAND_MAX);
float _M_PI = 3.14159265358979323846;
m_p += pow(m_randomness, _drand48 * 2.0 - 1.0);
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;
double den = m_last_x - *x;
double num = m_last_y - *y;
double len = num*num + den*den;
Expand Down