Skip to content

Commit 938cbc5

Browse files
committed
replaxced constructor
1 parent 3df0e51 commit 938cbc5

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

src/PolylineAlgorithm.Abstraction/Internal/CoordinateVariance.cs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,13 @@ namespace PolylineAlgorithm.Abstraction.Internal;
1717
[DebuggerDisplay($"{{{nameof(ToString)}(),nq}}")]
1818
[StructLayout(LayoutKind.Sequential, Pack = 4, Size = 8)]
1919
internal struct CoordinateVariance {
20-
private (int Latitude, int Longitude) _current = (0, 0);
20+
private (int Latitude, int Longitude) _current;
2121

2222
/// <summary>
23-
/// Initializes a new instance of the <see cref="CoordinateVariance"/> struct with the specified latitude and longitude deltas.
23+
/// Initializes a new instance of the <see cref="CoordinateVariance"/> struct with the default latitude and longitude deltas.
2424
/// </summary>
25-
/// <param name="latitude">The initial latitude delta.</param>
26-
/// <param name="longitude">The initial longitude delta.</param>
27-
private CoordinateVariance(int latitude, int longitude) {
28-
Latitude = latitude;
29-
Longitude = longitude;
25+
public CoordinateVariance() {
26+
_current = (0, 0);
3027
}
3128

3229
/// <summary>

0 commit comments

Comments
 (0)