@@ -13,21 +13,21 @@ namespace PolylineAlgorithm;
13
13
using System . Runtime . InteropServices ;
14
14
15
15
/// <summary>
16
- /// Represents a latitude and longitude pair.
16
+ /// Represents a latitude and longitude coordinate pair.
17
17
/// </summary>
18
18
[ StructLayout ( LayoutKind . Sequential , Pack = 8 , Size = 16 ) ]
19
19
[ DebuggerDisplay ( "{ToString()}" ) ]
20
20
public readonly struct Coordinate : IEquatable < Coordinate > {
21
21
/// <summary>
22
- /// Initializes default instance of <see cref="Coordinate"/> with <see cref="Latitude" /> and <see cref="Longitude" /> equal to 0.
22
+ /// Creates a new <see cref="Coordinate"/> structure that contains <see cref="Latitude" /> and <see cref="Longitude" /> set to 0.
23
23
/// </summary>
24
24
public Coordinate ( ) {
25
25
Latitude = 0d ;
26
26
Longitude = 0d ;
27
27
}
28
28
29
29
/// <summary>
30
- /// Initializes a new instance of <see cref="Coordinate"/> with <paramref name="latitude" /> and <paramref name="longitude"/> values.
30
+ /// Creates a new <see cref="Coordinate"/> structure that contains <see cref="Latitude" /> and <see cref="Longitude" /> set to specified values.
31
31
/// </summary>
32
32
/// <param name="latitude">A latitude value.</param>
33
33
/// <param name="longitude">A latitude value.</param>
@@ -54,7 +54,7 @@ public bool IsDefault
54
54
&& Longitude == default ;
55
55
56
56
/// <summary>
57
- /// Gets a value that indicates whether both, the <see cref="Latitude" /> and <see cref="Longitude"/> values, are in valid range.
57
+ /// Gets a value that indicates whether both, the <see cref="Latitude" /> and <see cref="Longitude"/> values, are in the valid range.
58
58
/// </summary>
59
59
public bool IsValid
60
60
=> ICoordinateValidator . Default . Latitude . IsInRange ( Latitude )
@@ -98,13 +98,24 @@ public bool Equals(Coordinate other) {
98
98
99
99
#region Equality operators
100
100
101
- /// <inheritdoc />
101
+ /// <summary>
102
+ /// Indicates whether the values of two specified <see cref="Coordinate" /> objects are equal.
103
+ /// </summary>
104
+ /// <param name="left">The first object to compare.</param>
105
+ /// <param name="right">The second object to compare.</param>
106
+ /// <returns><see langword="true"/> if <paramref name="left"/> and <paramref name="right"/> are equal; otherwise, <see langword="false"/>.</returns>
107
+
102
108
[ ExcludeFromCodeCoverage ]
103
109
public static bool operator == ( Coordinate left , Coordinate right ) {
104
110
return left . Equals ( right ) ;
105
111
}
106
112
107
- /// <inheritdoc />
113
+ /// <summary>
114
+ /// Indicates whether the values of two specified <see cref="CoordinateRange" /> objects are not equal.
115
+ /// </summary>
116
+ /// <param name="left">The first object to compare.</param>
117
+ /// <param name="right">The second object to compare.</param>
118
+ /// <returns><see langword="true"/> if <paramref name="left"/> and <paramref name="right"/> are not equal; otherwise, <see langword="false"/>.</returns>
108
119
[ ExcludeFromCodeCoverage ]
109
120
public static bool operator != ( Coordinate left , Coordinate right ) {
110
121
return ! ( left == right ) ;
0 commit comments