1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 18:07:23 +08:00

Add comment

This commit is contained in:
OliBomby 2023-12-28 22:54:30 +01:00
parent b16c232490
commit 0ce1a48e68

View File

@ -99,6 +99,8 @@ namespace osu.Game.Screens.Edit.Compose.Components
private Vector2 hexToPixel(Vector2 hex)
{
// Taken from <https://www.redblobgames.com/grids/hexagons/#hex-to-pixel>
// with modifications for the different definition of size.
return new Vector2(Spacing * (hex.X - hex.Y / 2), Spacing * one_over_sqrt3 * 1.5f * hex.Y);
}
}