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
/// Initializes a new instance of the <see cref="Coordinate"/> struct with default values for <see cref="Latitude"/> and <see cref="Longitude"/>.
21
+
/// Initializes a new instance of the <see cref="Coordinate"/> struct with default values (0) for <see cref="Latitude"/> and <see cref="Longitude"/>.
22
22
/// </summary>
23
23
publicCoordinate(){
24
24
Latitude=default;
25
25
Longitude=default;
26
26
}
27
27
28
28
/// <summary>
29
-
/// Initializes a new instance of the <see cref="Coordinate"/> struct with specified latitude and longitude values.
29
+
/// Initializes a new instance of the <see cref="Coordinate"/> struct with the specified latitude and longitude values.
30
30
/// </summary>
31
-
/// <param name="latitude">The latitude value, in degrees.</param>
32
-
/// <param name="longitude">The longitude value, in degrees.</param>
31
+
/// <param name="latitude">The latitude component, in degrees.</param>
32
+
/// <param name="longitude">The longitude component, in degrees.</param>
33
33
publicCoordinate(doublelatitude,doublelongitude){
34
34
Latitude=latitude;
35
35
Longitude=longitude;
36
36
}
37
37
38
38
/// <summary>
39
-
/// Gets the latitude value of the coordinate, in degrees.
39
+
/// Gets the latitude component of the coordinate, in degrees.
40
40
/// </summary>
41
41
publicdoubleLatitude{get;}
42
42
43
43
/// <summary>
44
-
/// Gets the longitude value of the coordinate, in degrees.
44
+
/// Gets the longitude component of the coordinate, in degrees.
45
45
/// </summary>
46
46
publicdoubleLongitude{get;}
47
47
48
48
/// <summary>
49
-
/// Determines whether the coordinate is the default value (both <see cref="Latitude"/> and <see cref="Longitude"/> are 0).
49
+
/// Determines whether this coordinate is the default value (both <see cref="Latitude"/> and <see cref="Longitude"/> are 0).
50
50
/// </summary>
51
-
/// <returns><see langword="true"/> if the coordinate is the default value; otherwise, <see langword="false"/>.</returns>
51
+
/// <returns>
52
+
/// <see langword="true"/> if both latitude and longitude are 0; otherwise, <see langword="false"/>.
53
+
/// </returns>
52
54
publicboolIsDefault()
53
55
=>Latitude==default
54
56
&&Longitude==default;
55
57
56
58
/// <summary>
57
-
/// Determines whether the coordinate is valid by checking if both <see cref="Latitude"/> and <see cref="Longitude"/> are within their respective valid ranges.
59
+
/// Determines whether this coordinate is valid by checking if both <see cref="Latitude"/> and <see cref="Longitude"/>
60
+
/// are within their respective valid ranges as defined by the default <see cref="ICoordinateValidator"/>.
58
61
/// </summary>
59
-
/// <returns><see langword="true"/> if the coordinate is valid; otherwise, <see langword="false"/>.</returns>
62
+
/// <returns>
63
+
/// <see langword="true"/> if the coordinate is within valid latitude and longitude ranges; otherwise, <see langword="false"/>.
0 commit comments