Skip to content

Commit 82c5f1c

Browse files
committed
refactor: Review comments
1 parent 4cb5c77 commit 82c5f1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/RunActivity/Viewer3D/Common/SunMoonPos.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ public static Vector3 SolarAngle(double latitude, double longitude, EnvironmentF
9494
var solarAzimuthCosine = (Math.Sin(solarDeclination) - (solarZenithCosine * Math.Sin(latitude))) / (Math.Sin(Math.Acos(solarZenithCosine)) * Math.Cos(latitude));
9595
var solarAzimuthSine = -Math.Sin(solarHourAngle) * Math.Cos(solarDeclination) / Math.Sin(Math.Acos(solarZenithCosine));
9696

97-
sunDirection.X = (float)solarZenithSine * (float)solarAzimuthSine;
97+
sunDirection.X = (float)(solarZenithSine * solarAzimuthSine);
9898
sunDirection.Y = (float)solarZenithCosine;
99-
sunDirection.Z = -(float)solarZenithSine * (float)solarAzimuthCosine;
99+
sunDirection.Z = -(float)(solarZenithSine * solarAzimuthCosine);
100100
sunDirection.Normalize();
101101

102102
return sunDirection;

0 commit comments

Comments
 (0)