-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
> Closes #138 > Supercedes #140 Re implementation of #140 by @msparkles I added CHANGELOG entries and some code clarifications. ## Work done Added the capacity to use *fractional axial coordinates* as `Vec2` in `HexLayout` methods: * Added `HexLayout::fract_hex_to_world_pos` method * Added `HexLayout::world_pos_to_fract_hex` method To avoid duplication and multi-method chaining I encapsulated the matrix computations in: * Added `HexOrientationData::forward` method * Added `HexOrientationData::inverse` method I also added these utility methods: * Added `Hex::to_array_f32` utility method * Added `Hex::to_cubic_array_f32` utility method
- Loading branch information
1 parent
f42a378
commit 6a4bbd3
Showing
4 changed files
with
90 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters