generated from tipragot/rust
Adding a map creation plugin #57
|
@ -248,8 +248,8 @@ impl<T: Number> HexPosition<T> {
|
||||||
/// # Example
|
/// # Example
|
||||||
///
|
///
|
||||||
/// ```no_run
|
/// ```no_run
|
||||||
/// use border_wars::map::hex::HexPosition;
|
|
||||||
/// use bevy::math::Vec2;
|
/// use bevy::math::Vec2;
|
||||||
|
/// use border_wars::map::hex::HexPosition;
|
||||||
///
|
///
|
||||||
/// let position = HexPosition(1, 0);
|
/// let position = HexPosition(1, 0);
|
||||||
/// assert_eq!(position.to_pixel_coordinates(), (3f32.sqrt(), 0.0).into());
|
/// assert_eq!(position.to_pixel_coordinates(), (3f32.sqrt(), 0.0).into());
|
||||||
|
|
Loading…
Reference in a new issue