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

Make a robust collection of trajectory types #53

Open
elidupree opened this issue May 31, 2018 · 0 comments
Open

Make a robust collection of trajectory types #53

elidupree opened this issue May 31, 2018 · 0 comments

Comments

@elidupree
Copy link
Owner

elidupree commented May 31, 2018

Currently, the TimeSteward library only provides QuadraticTrajectory. Ideally, it should provide a variety of trajectory types, customizable by:

  • How many dimensions they are
  • What degree of polynomial they are (linear versus quadratic, etc.)
  • Whether they allow rounding error
  • The base numeric type (Possibly anything that implements num::Integer?)

QuadraticTrajectory has one specific choice for each of these (2, 2, yes, i64). For rustweb-test-game, I had to implement different sets of choices (1-2, 1, no, i64). Client code shouldn't have to implement such basic stuff. And they should be full-featured (e.g. implementing arithmetic operators, letting you access the dimensions of a multi-dimensional trajectory as single-dimensional trajectories, etc.)

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

No branches or pull requests

1 participant