Skip to content

Fix Cube.Contains checking Y upper bound twice instead of Z - #2626

Merged
Perksey merged 2 commits into
dotnet:mainfrom
AustinAviv:fix-cube-contains-z-axis
Oct 11, 2026
Merged

Perksey merged 2 commits into
dotnet:mainfrom
AustinAviv:fix-cube-contains-z-axis

Conversation

@AustinAviv

Copy link
Copy Markdown
Contributor

Summary of the PR

Fixes a copy-paste error in Cube<T>.Contains(Cube<T> other) where oMax.Y <= tMax.Y was checked twice, leaving the Z upper bound unchecked. Also adds unit tests covering Cube<T>.Contains for points and other cubes.

Related issues, Discord discussions, or proposals

Fixes #2625

Further Comments

@Perksey Perksey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How embarrassing! Good spot, thank you!

@AustinAviv

Copy link
Copy Markdown
Contributor Author

How embarrassing! Good spot, thank you!

No worries at all, easy typo to miss!

Also noticed the CI failure seems to be the Android SDK setup issue from setup-android@v2 rather than this change. Let me know if you'd like me to rebase once that gets sorted out.

@Perksey

Perksey commented Oct 11, 2026

Copy link
Copy Markdown
Member

We've got another PR in flight to sort that so I'll probably force merge this once I get to a computer.

@AustinAviv

Copy link
Copy Markdown
Contributor Author

We've got another PR in flight to sort that so I'll probably force merge this once I get to a computer.

Sounds good, appreciate it!

Happy to take a look into #2622 as well if helpful.

See you, Have a great day.

@Exanite

Exanite commented Oct 11, 2026

Copy link
Copy Markdown
Member

Sounds good, appreciate it!

Happy to take a look into #2622 as well if helpful.

See you, Have a great day.

That would be great! I'm not familiar with Android dev so this would be very helpful.

@AustinAviv

AustinAviv commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor Author

Sounds good, appreciate it!
Happy to take a look into #2622 as well if helpful.
See you, Have a great day.

That would be great! I'm not familiar with Android dev so this would be very helpful.

Sure, I’ll check the issue in Silk.NET

Android packages can be tricky & I seeing similar issues in dotnet/android too

dotnet/android#13064

@Perksey
Perksey enabled auto-merge (squash) October 11, 2026 19:14
@Perksey
Perksey merged commit caf5eea into dotnet:main Oct 11, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Cube<T>.Contains(Cube<T> other) compares Y upper bound twice instead of Z

3 participants