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

Terrace.controlPoints() should not return the raw backing array #30

Open
zml2008 opened this issue Feb 4, 2022 · 0 comments
Open

Terrace.controlPoints() should not return the raw backing array #30

zml2008 opened this issue Feb 4, 2022 · 0 comments

Comments

@zml2008
Copy link
Member

zml2008 commented Feb 4, 2022

Unfortunately, Java can only expose mutable arrays at the moment, and we don't want to allow our internal state to be exposed like this.

Alternatives are:

  • provide a DoubleStream
  • add Terrace.controlPoint(index)
  • maybe both?
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