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

plotter: NewPolygon should take an interface rather than a list of interfaces #442

Open
ctessum opened this issue Apr 12, 2018 · 0 comments · May be fixed by #555
Open

plotter: NewPolygon should take an interface rather than a list of interfaces #442

ctessum opened this issue Apr 12, 2018 · 0 comments · May be fixed by #555

Comments

@ctessum
Copy link
Contributor

ctessum commented Apr 12, 2018

Right now, plotter.NewPolygon takes ...XYer as an input. However, it seems like it is difficult to actually get data in that format.

Would it make sense to add an interface something like:

XYers interface{
    Len() int
    LenAt(int) int
    XY(int, int) (x, y float64)
}

That might be easier to implement.

@ctessum ctessum linked a pull request May 26, 2019 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant