fixed minor mistake in main function when calling koch curve, not it should make correct snowflake

This commit is contained in:
K 2023-12-14 15:33:35 +05:30
parent b317b6137b
commit dedaabbd24
Signed by: notkshitij
GPG Key ID: C5B8BC7530F8F43F

View File

@ -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);