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

koch_line function #1

Open
Bruv2 opened this issue Nov 8, 2022 · 0 comments
Open

koch_line function #1

Bruv2 opened this issue Nov 8, 2022 · 0 comments

Comments

@Bruv2
Copy link

Bruv2 commented Nov 8, 2022

Hello @IlievskiV
`
# third point: rotation for multiple of 60 degrees
c = (b[0] + l/3. * np.cos(factor * np.pi/3.), b[1] + l/3. * np.sin(factor * np.pi/3.))

# fourth point: two thirds in each direction from the first point
d = (x1 + 2. * (x2 - x1)/3., y1 + 2. * (y2 - y1)/3.)

# the last point
e = end

return {'a': a, 'b': b, 'c': c, 'd' : d, 'e' : e, 'factor' : factor}

`

Where is the factor variable from?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant