Skip to content

koch_line function #1

@Yentumi-K

Description

@Yentumi-K

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions