Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions scribbles/chaos.qbl
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ quibble_point_2D constant_disk_fx(quibble_point_2D pt,
pt.y = (pt.y-location.y)/radius;

float r2 = pt.x*pt.x + pt.y*pt.y;
float new_theta;
float new_r2;

float theta = M_PI;
if (r2 > FLT_EPSILON){
Expand All @@ -164,9 +166,9 @@ quibble_point_2D constant_disk_fx(quibble_point_2D pt,
theta += 2*M_PI;
}

float new_theta = (r2+function_index)*M_PI;
new_theta = (r2+function_index)*M_PI;

float new_r2 = sqrt(theta/(2*M_PI));
new_r2 = sqrt(theta/(2*M_PI));

pt.x = radius*new_r2*cos(new_theta)+location.x;
pt.y = radius*new_r2*sin(new_theta)+location.y;
Expand Down