mirror of
https://github.com/osukey/osukey.git
synced 2025-06-10 13:58:01 +09:00
Reduce amount of casting
This commit is contained in:
parent
423f0fbda7
commit
1984a9f70d
@ -69,10 +69,10 @@ namespace osu.Game.Tests.Visual.Ranking
|
|||||||
|
|
||||||
for (int i = 0; i < 500; i++)
|
for (int i = 0; i < 500; i++)
|
||||||
{
|
{
|
||||||
float angle = (float)random.NextDouble() * 2 * (float)Math.PI;
|
double angle = random.NextDouble() * 2 * Math.PI;
|
||||||
float radius = (float)random.NextDouble() * 0.5f * OsuHitObject.OBJECT_RADIUS;
|
double radius = random.NextDouble() * 0.5f * OsuHitObject.OBJECT_RADIUS;
|
||||||
|
|
||||||
Vector2 position = new Vector2(radius * (float)Math.Cos(angle), radius * (float)Math.Sin(angle));
|
var position = new Vector2((float)(radius * Math.Cos(angle)), (float)(radius * Math.Sin(angle)));
|
||||||
|
|
||||||
hitEvents.Add(new HitEvent(0, HitResult.Perfect, new HitCircle(), new HitCircle(), position));
|
hitEvents.Add(new HitEvent(0, HitResult.Perfect, new HitCircle(), new HitCircle(), position));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user