Skip to content

Hexing 0.2.0

Choose a tag to compare

@CoCoSol007 CoCoSol007 released this 04 Aug 16:54
· 33 commits to main since this release

Release Notes - hexing 0.2.0

Introduction

I am excited to announce the release of hexing version 0.2.0! This update brings significant improvements to the documentation and bug fixes. While this may be the last version we release, we are open to collaboration and welcome contributions from the community.

What's New in 0.2.0

Enhanced Documentation

  • Comprehensive and detailed examples added to showcase the capabilities of the library.
  • Clearer explanations of the main types and their usage.
  • Additional comments and explanations for better understanding and ease of use.

Bug Fixe

Removed support for floating-point types in the Number trait. This prevents the creation of HexPosition instances with floating-point coordinates (e.g., HexPosition(1.9, 2.8)), which improves type conversion reliability and avoids absurd results in comparisons or calculations.

Current Features

  • Hexagonal Coordinate Manipulation: Represent and manipulate positions in a hexagonal grid using axial coordinates.
  • Distance Calculations: Compute the distance between two hexagonal positions.
  • Pixel Coordinate Conversion: Convert hexagonal positions to pixel coordinates for graphical use.
  • Reflection and Rotation: Apply reflection and rotation to hexagonal positions.
  • Ring and Spiral Iterators: Obtain positions in a ring or spiral around a central position.
  • Line Iterators: Obtain positions along a line between two hexagonal positions.

Known Limitations

While this version includes many improvements, I was not able to add pathfinding or field of view (FOV) functionality due to time constraints. These features are highly requested, and we encourage the community to contribute to their development.

Collaboration and Contribution

Although we may not continue to actively develop new features, I am open to collaboration. If you have ideas, improvements, or wish to implement pathfinding or FOV, please feel free to contribute. You can fork the repository, submit pull requests, or open issues to discuss new features and improvements.

Installation

To start using hexing, add it to your Cargo.toml:

[dependencies]
hexing = "0.2.0"

Happy coding!