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

[WIP] More box rework #1341

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

NogginBops
Copy link
Member

@NogginBops NogginBops commented Oct 26, 2021

Purpose of this PR

This PR aims to complete the box rework that started in #1037 .
It adds more functions to boxes and optimizes some functions.

This PR also makes Min and Max raw public fields of the Box struct to fall in line more with other math types in OpenTK.

One notable addition is Nan preserving min/max operations.
This is technically a breaking change for Vector2.ComponentMin and Vector2.ComponentMax but having them be NaN preserving should be the correct behavior.

TODO:

  • Box2
  • Box2i
  • Box3
  • Box3i

This PR also adds Round, Ceiling, and Floor functions to Vector2, Vector3, and Vector4.

Testing status

Current box unit-tests pass but these should be extended.
Before this PR is done the aim is to have some more unit tests.

@NogginBops NogginBops added this to the 4.7.0 milestone Oct 26, 2021
@NogginBops NogginBops changed the title More box rework [WIP] More box rework Oct 26, 2021
@NogginBops
Copy link
Member Author

I will be retargeting this PR to OpenTK 5 as we've decided to postpone the Box changes until then.

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

Successfully merging this pull request may close these issues.

None yet

1 participant