You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <param name="latitude">The latitude value, in degrees.</param>
35
+
/// <param name="longitude">The longitude value, in degrees.</param>
37
36
publicCoordinate(doublelatitude,doublelongitude){
38
37
Latitude=latitude;
39
38
Longitude=longitude;
40
39
}
41
40
42
41
/// <summary>
43
-
/// Gets the latitude value as a double.
42
+
/// Gets the latitude value of the coordinate, in degrees.
44
43
/// </summary>
45
44
publicdoubleLatitude{get;}
46
45
47
46
/// <summary>
48
-
/// Gets the longitude value as a double.
47
+
/// Gets the longitude value of the coordinate, in degrees.
49
48
/// </summary>
50
49
publicdoubleLongitude{get;}
51
50
52
51
/// <summary>
53
-
/// Gets a value indicating whether both the <see cref="Latitude"/> and <see cref="Longitude"/> values are equal to their default values.
52
+
/// Determines whether the coordinate is the default value (both <see cref="Latitude"/> and <see cref="Longitude"/> are 0).
54
53
/// </summary>
54
+
/// <returns><see langword="true"/> if the coordinate is the default value; otherwise, <see langword="false"/>.</returns>
55
55
publicboolIsDefault()
56
56
=>Latitude==default
57
57
&&Longitude==default;
58
58
59
59
/// <summary>
60
-
/// Gets a value indicating whether both the <see cref="Latitude"/> and <see cref="Longitude"/> values are within the valid range.
60
+
/// Determines whether the coordinate is valid by checking if both <see cref="Latitude"/> and <see cref="Longitude"/> are within their respective valid ranges.
61
61
/// </summary>
62
+
/// <returns><see langword="true"/> if the coordinate is valid; otherwise, <see langword="false"/>.</returns>
/// Indicates whether the values of two specified <see cref="Coordinate"/> objects are not equal.
114
+
/// Determines whether two <see cref="Coordinate"/> instances are not equal.
111
115
/// </summary>
112
-
/// <param name="left">The first object to compare.</param>
113
-
/// <param name="right">The second object to compare.</param>
114
-
/// <returns><see langword="true"/> if <paramref name="left"/> and <paramref name="right"/> are not equal; otherwise, <see langword="false"/>.</returns>
116
+
/// <param name="left">The first coordinate to compare.</param>
117
+
/// <param name="right">The second coordinate to compare.</param>
118
+
/// <returns><see langword="true"/> if the coordinates are not equal; otherwise, <see langword="false"/>.</returns>
0 commit comments