@@ -240,9 +240,9 @@ public sealed class Geodesic
240
240
private static readonly double tolb_ = tol0_ * tol2_ ;
241
241
private static readonly double xthresh_ = 1000 * tol2_ ;
242
242
243
- internal double _a , _f , _f1 , _e2 , _ep2 , _b , _c2 ;
244
- private double _n , _etol2 ;
245
- private double [ ] _A3x , _C3x , _C4x ;
243
+ internal readonly double _a , _f , _f1 , _e2 , _ep2 , _b , _c2 ;
244
+ private readonly double _n , _etol2 ;
245
+ private readonly double [ ] _A3x , _C3x , _C4x ;
246
246
247
247
/**
248
248
* Constructor for a ellipsoid with
@@ -1294,9 +1294,9 @@ public GeodesicLine Line(double lat1, double lon1, double azi1, int caps)
1294
1294
* A global instantiation of Geodesic with the parameters for the WGS84
1295
1295
* ellipsoid.
1296
1296
**********************************************************************/
1297
- private static readonly Lazy < Geodesic > _wgs84 = new Lazy < Geodesic > ( ( ) => new Geodesic ( Constants . WGS84_a , Constants . WGS84_f ) , true ) ;
1297
+ private static readonly Geodesic _wgs84 = new Geodesic ( Constants . WGS84_a , Constants . WGS84_f ) ;
1298
1298
1299
- public static Geodesic WGS84 => _wgs84 . Value ;
1299
+ public static Geodesic WGS84 => _wgs84 ;
1300
1300
1301
1301
// This is a reformulation of the geodesic problem. The notation is as
1302
1302
// follows:
0 commit comments