mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 02:03:22 +08:00
Rename VectorHelper
to VectorUtils
This commit is contained in:
parent
153e204d20
commit
3fcda83713
@ -105,7 +105,7 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
distanceToPrev * (float)Math.Sin(current.AngleRad)
|
distanceToPrev * (float)Math.Sin(current.AngleRad)
|
||||||
);
|
);
|
||||||
|
|
||||||
posRelativeToPrev = VectorHelper.RotateAwayFromEdge(previous.EndPositionRandomised, posRelativeToPrev);
|
posRelativeToPrev = VectorUtils.RotateAwayFromEdge(previous.EndPositionRandomised, posRelativeToPrev);
|
||||||
|
|
||||||
current.AngleRad = (float)Math.Atan2(posRelativeToPrev.Y, posRelativeToPrev.X);
|
current.AngleRad = (float)Math.Atan2(posRelativeToPrev.Y, posRelativeToPrev.X);
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ using osuTK;
|
|||||||
|
|
||||||
namespace osu.Game.Rulesets.Osu.Utils
|
namespace osu.Game.Rulesets.Osu.Utils
|
||||||
{
|
{
|
||||||
public static class VectorHelper
|
public static class VectorUtils
|
||||||
{
|
{
|
||||||
// The relative distance to the edge of the playfield before objects' positions should start to "turn around" and curve towards the middle.
|
// The relative distance to the edge of the playfield before objects' positions should start to "turn around" and curve towards the middle.
|
||||||
// The closer the hit objects draw to the border, the sharper the turn
|
// The closer the hit objects draw to the border, the sharper the turn
|
Loading…
Reference in New Issue
Block a user