generated from tipragot/rust
Improve utils by adding pixel conversion #52
|
@ -58,7 +58,7 @@ impl<T: HexNumber + AsPrimitive<f32>> HexPosition<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Converts the current [HexPosition] into a pixel coordinate.
|
/// Converts the current [HexPosition] into a pixel coordinate.
|
||||||
/// Input: The size of a single hexagon in pixels (witdh, height).
|
/// Input: The size of the hexagon in pixels (witdh, height).
|
||||||
///
|
///
|
||||||
/// If you want to learn more about pixel coordinates conversion,
|
/// If you want to learn more about pixel coordinates conversion,
|
||||||
/// you can check the
|
/// you can check the
|
||||||
|
|
Loading…
Reference in a new issue