Attempt to fix possible loss of fraction

This commit is contained in:
ColdVolcano 2017-06-18 23:08:27 -05:00
parent 63aabc162b
commit 84aa17dea3
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ public override void Draw(Action<TexturedVertex2D> vertexAction)
{
for (int i = 0; i < bars_per_visualizer * visualizers; i++)
{
float rotation = MathHelper.DegreesToRadians(i / (float)bars_per_visualizer * 360 + i / bars_per_visualizer * (360 / visualizers));
float rotation = MathHelper.DegreesToRadians(i / (float)bars_per_visualizer * 360 + (i / bars_per_visualizer) * (360 / visualizers));
float rotationCos = (float)Math.Cos(rotation);
float rotationSin = (float)Math.Sin(rotation);
//taking the cos and sin to the 0..1 range