-
Notifications
You must be signed in to change notification settings - Fork 627
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
Feature/fix box contains #953
Conversation
jvbsl
commented
Aug 20, 2019
- Use latest C# version(necessary for me with dotnet 3.0 preview, doesn't seem to recognize 7.3)
- Make contains boundary exclusive, as tests do test for that -> fixed tests by doing that
- Make contains overload with bool parameter to test boundary inclusive as well
- Use boundary inclusive contains for inflate tests
* box contains check is non boundary inclusive by default now * Fixed box contains tests * Add boundary inclusive box contains check * Use boundary inclusive box contains check for inflate test
|
||
[<Property>] | ||
let ``Box2.Inflate is equivelant to Box2.Inflated`` (b1 : Box3, v1 : Vector3) = | ||
let ``Box2.Inflate is equivalent to Box2.Inflated`` (b1 : Box3, v1 : Vector3) = |
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.
lol that change, hilarious. Good catch! 🥇
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.
Perfect fix!
We've got a little code duplication here; the overload should probably defer to the other method. I'll merge for now as this fixes our tests! |
Thanks a ton @jvbsl ! |
the code duplication was on purpose for now, for performance, and I didn't want to AggressiveInline everything :D |
Figures. Hence the merge. |