-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
FramePos improvements #4053
FramePos improvements #4053
Conversation
5240074
to
7c5f330
Compare
This should ensure that all calculations with frame positions are well defined, and we never end up with weird Nan values in the engine. |
I am still worried about the inconsistencies introduced by the special equality comparisons ==/!= that are incompatible with </<=/>/>=.
|
Actually the striked through suggestion from your comment is already the case. The comparison operators all use |
What kind of issues do you expect? IMHO allowing comparisons of valid and invalid values is more confusing. If you Do you have a use case for comparisons between valid and invalid values, or two invalid values? |
I didn't consider the debug assertions that already prevent using </<=/>/>= with invalid values. Then there should be no inconsistencies. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! LGTM
Some minor improvements to the FramePos class added in #4043.