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

This commit is contained in:
CoCo_Sol 2024-02-21 17:48:00 +01:00
parent d64d0bb258
commit 4633db9609

View file

@ -252,7 +252,7 @@ impl<T: Number> HexPosition<T> {
/// use bevy::math::Vec2;
///
/// let position = HexPosition(1, 0);
/// assert_eq!(position.to_pixel_coordinates(), Vec2::new(3f32.sqrt(), 0.0));
/// assert_eq!(position.to_pixel_coordinates(), (3f32.sqrt(), 0.0).into());
/// ```
pub fn to_pixel_coordinates(&self) -> Vec2 {
Vec2::new(