Skip to content

Commit 7b58f47

Browse files
author
Petr Sramek
committed
refactored coordinate struct
1 parent ea3eef9 commit 7b58f47

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/PolylineAlgorithm/Coordinate.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ namespace PolylineAlgorithm;
1919
[DebuggerDisplay("{ToString()}")]
2020
public readonly struct Coordinate : IEquatable<Coordinate> {
2121
/// <summary>
22-
/// Creates a new <see cref="Coordinate"/> structure that contains <see cref="Latitude" /> and <see cref="Longitude" /> set to 0.
22+
/// Creates a new <see cref="Coordinate"/> structure that contains <see cref="Latitude" /> and <see cref="Longitude" /> set to <see langword="default"/> value.
2323
/// </summary>
2424
public Coordinate() {
25-
Latitude = 0d;
26-
Longitude = 0d;
25+
Latitude = default;
26+
Longitude = default;
2727
}
2828

2929
/// <summary>
@@ -47,7 +47,7 @@ public Coordinate(double latitude, double longitude) {
4747
public readonly double Longitude { get; }
4848

4949
/// <summary>
50-
/// Gets a value that indicates whether both, the <see cref="Latitude" /> and <see cref="Longitude"/> values, are equal to 0.
50+
/// Gets a value that indicates whether both, the <see cref="Latitude" /> and <see cref="Longitude"/> values, are equal to <see langword="default" />.
5151
/// </summary>
5252
public bool IsDefault
5353
=> Latitude == default

0 commit comments

Comments
 (0)