Chris3606 / GoRogue

.NET Standard roguelike library in C#. Features many algorithms and data structures pertinent to roguelike/2D game developers, specifically designed to be minimally intrusive upon the developer's architecture.
MIT License
494 stars 31 forks source link

Add More MathHelpers #173

Closed Chris3606 closed 4 years ago

Chris3606 commented 4 years ago

@fcheadle has mentioned he has some additions to MathHelpers that would be useful.

In tandem with this, there is a MathHelpers library in GoRogue, as well as one in the primitives library; some to all of those may be able to be consolidated one way or the other. Ideally there would be a clear distinction between the two.

fcheadle commented 4 years ago

After combing through my code, there is only one extension method I have left that I could contribute: Rectangle extensions for Recursive Bisection; I think that this strategy is also sometimes called Binary Space Partitioning.

Chris3606 commented 4 years ago

Are these added via https://github.com/thesadrogue/TheSadRogue.Primitives/pull/48 in the primitives library?

fcheadle commented 4 years ago

Aye, the Bisect and related methods are the only things I had left that weren't already added.

fcheadle commented 4 years ago

The merge request has been accepted in the primitives library. I'm closing this issue as "complete"