diff --git a/Aaru.Core/Graphics/Spiral.cs b/Aaru.Core/Graphics/Spiral.cs index 2ca7fd389..57067ccdb 100644 --- a/Aaru.Core/Graphics/Spiral.cs +++ b/Aaru.Core/Graphics/Spiral.cs @@ -620,11 +620,11 @@ public sealed class Spiral : IMediaGraph /// Center of the spiral start /// Minimum radius before which the spiral must have no points /// Radius at which the spiral will end - /// TODO: Something trigonometry something something... + /// A constant that decides the position of a point on the spiral /// List of points to draw the specified spiral static List GetSpiralPoints(SKPoint center, float minRadius, float maxRadius, float a) { - // Get the points. + // Initialize a list to store the points of the spiral. List points = new(); const float dtheta = (float)(0.5f * Math.PI / 180); @@ -636,18 +636,18 @@ public sealed class Spiral : IMediaGraph if(r < minRadius) continue; - // Convert to Cartesian coordinates. + // Converts polar coordinates (r,theta) to Cartesian (x,y) var x = (float)(r * Math.Cos(theta)); var y = (float)(r * Math.Sin(theta)); - // Center. + // Adjusts x and y by center coordinates x += center.X; y += center.Y; - // Create the point. + // Adds the newly calculated point to the list points.Add(new SKPoint(x, y)); - // If we have gone far enough, stop. + // Terminate the loop if we have reached the end of the spiral if(r > maxRadius) break; } diff --git a/Aaru.Decoders b/Aaru.Decoders index 11131ce82..089ba5273 160000 --- a/Aaru.Decoders +++ b/Aaru.Decoders @@ -1 +1 @@ -Subproject commit 11131ce825fb6bcff73f50d71638559a79108438 +Subproject commit 089ba527329920d2106af7f7d190a8bcb3f37a13 diff --git a/Aaru.Decryption b/Aaru.Decryption index 24557e80c..7fd2a0fc7 160000 --- a/Aaru.Decryption +++ b/Aaru.Decryption @@ -1 +1 @@ -Subproject commit 24557e80cdea503617d32d7d895ba040a443cf7b +Subproject commit 7fd2a0fc739ac72bae3f6cf75d210dbfb51b8236