mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:20:04 +08:00
Add comment
This commit is contained in:
parent
b16c232490
commit
0ce1a48e68
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user