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

[wpimath] Make Java take lists instead of Vectors where C++ takes wpi::arrays #7826

Open
calcmogul opened this issue Feb 25, 2025 · 2 comments
Labels
2027 2027 target component: wpimath Math library

Comments

@calcmogul
Copy link
Member

A lot of wpimath Java APIs take a Vector<N> type, but VecBuilder.fill(...) is more verbose than List.of(...).

@calcmogul calcmogul added this to 2027 Feb 21, 2025
@calcmogul calcmogul converted this from a draft issue Feb 25, 2025
@calcmogul calcmogul added component: wpimath Math library 2027 2027 target labels Feb 25, 2025
@PeterJohnson
Copy link
Member

Doesn’t that require boxing? You can’t have a List<double>, only a List<Double>.

@calcmogul
Copy link
Member Author

calcmogul commented Feb 25, 2025

The Vector<N> type requires boxing anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2027 2027 target component: wpimath Math library
Projects
Status: No status
Development

No branches or pull requests

2 participants