update
Some checks failed
Rust Checks / checks (push) Failing after 5s
Rust Checks / checks (pull_request) Failing after 5s

This commit is contained in:
CoCo_Sol 2024-02-21 17:45:08 +01:00
parent 3cf5d76d00
commit d64d0bb258

View file

@ -249,9 +249,10 @@ impl<T: Number> HexPosition<T> {
///
/// ```no_run
/// use border_wars::map::hex::HexPosition;
/// use bevy::math::Vec2;
///
/// let position = HexPosition(1, 0);
/// assert_eq!(position.to_pixel_coordinates(), (3f32.sqrt(), 0.0));
/// assert_eq!(position.to_pixel_coordinates(), Vec2::new(3f32.sqrt(), 0.0));
/// ```
pub fn to_pixel_coordinates(&self) -> Vec2 {
Vec2::new(