File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import CGeographicLib
1616///
1717/// The default ellipsoid is WGS-84, but custom ellipsoids can be specified.
1818public struct Geodesic : Sendable {
19- internal private ( set ) var geod : geod_geodesic
19+ internal let geod : geod_geodesic
2020
2121 // MARK: - Initialization
2222
@@ -30,8 +30,9 @@ public struct Geodesic: Sendable {
3030 /// - equatorialRadius: The equatorial radius in meters
3131 /// - flattening: The flattening of the ellipsoid
3232 public init ( equatorialRadius: Double , flattening: Double ) {
33- self . geod = geod_geodesic ( )
34- geod_init ( & self . geod, equatorialRadius, flattening)
33+ var geod = geod_geodesic ( )
34+ geod_init ( & geod, equatorialRadius, flattening)
35+ self . geod = geod
3536 }
3637
3738 // MARK: - Properties
You can’t perform that action at this time.
0 commit comments