fixed minor mistake in main function when calling koch curve, not it should make correct snowflake
This commit is contained in:
parent
b317b6137b
commit
dedaabbd24
@ -52,7 +52,7 @@ int main()
|
||||
cin>>order;
|
||||
int x3 = x1 + (x2-x1)*cos(angle) + (y2-y1)*sin(angle);
|
||||
int y3 = y1 - (x2-x1)*sin(angle) + (y2-y1)*cos(angle);
|
||||
koch(x1,y1,x2,y2,order);
|
||||
koch(x2,y2,x1,y1,order);
|
||||
koch(x1,y1,x3,y3,order);
|
||||
koch(x3,y3,x2,y2,order);
|
||||
delay(10000);
|
||||
|
Loading…
Reference in New Issue
Block a user