-
Notifications
You must be signed in to change notification settings - Fork 843
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
Implement an interval class #777
Comments
Hmmm. It appears that "range" is unconventional / inaccurate. Looks like "interval" is more correct. |
From Slack discussion, constant values are |
Suggest defining |
I like it. The better way would be:
|
Yeah, but qualify it's a double: using std::numeric_limits<double>::infinity; Edit: that variable is a function |
Oif. Ok,
|
ARRRRGGGHHH!!! That looks exactly like the line we already have in |
The remaining three tasks all have to do with time, which is more broadly covered in #799. We'll use |
Also see specific issues for the tasks given above. |
A class that operates on ranges of
double
values. Use cases:Here's a sketch of an interval class (not all methods below need be implemented; only those actually needed):
This class could also support transforms, such as scale, translate, whatever.
The text was updated successfully, but these errors were encountered: