Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmada committed Jun 18, 2023
1 parent 3e4f042 commit 79674b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NetFabric.Numerics.Geography/Geodetic2/Point.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public static TAngle DistanceSphere<TDatum, TAngle>(Point<TDatum, Radians, TAngl
Angle.Sin(halfLongitudeDifference) * Angle.Sin(halfLongitudeDifference));
var c = TAngle.CreateChecked(2) * Angle.Atan2(TAngle.Sqrt(a), TAngle.Sqrt(TAngle.One - a));

return TAngle.CreateChecked(MedianRadius(TDatum.Ellipsoid)) * c.Value;
return TAngle.CreateChecked(Ellipsoid.ArithmeticMeanRadius(TDatum.Ellipsoid)) * c.Value;
}

/// <summary>
Expand Down

0 comments on commit 79674b4

Please sign in to comment.