@@ -8,28 +8,28 @@ namespace PolylineAlgorithm.Validation;
8
8
using PolylineAlgorithm . Internal ;
9
9
10
10
/// <summary>
11
- /// Defines proprties and methods used for validating coordinates .
11
+ /// Provides a mechanism for validating <see cref="Coordinate"/> structure and its values, Latitude and Longitude .
12
12
/// </summary>
13
13
public interface ICoordinateValidator {
14
14
/// <summary>
15
- /// Represents latitude validation range
15
+ /// Gets latitude validation range.
16
16
/// </summary>
17
17
CoordinateRange Latitude { get ; }
18
18
19
19
/// <summary>
20
- /// Represents longitude validation range
20
+ /// Gets longitude validation range.
21
21
/// </summary>
22
22
CoordinateRange Longitude { get ; }
23
23
24
24
/// <summary>
25
- /// Validates coordinate .
25
+ /// Returns a value indicating whether <see cref="Coordinate" /> is valid .
26
26
/// </summary>
27
- /// <param name="coordinate"></param>
28
- /// <returns><see langword="true"/></returns>
29
- bool IsValid ( ref readonly Coordinate coordinate ) ;
27
+ /// <param name="coordinate">The coordinate to be validated. </param>
28
+ /// <returns><see langword="true"/> if <paramref name="coordinate"/> is valid; otherwise, <see langword="false"/>. </returns>
29
+ bool IsValid ( Coordinate coordinate ) ;
30
30
31
31
/// <summary>
32
- /// Represents global coordinate validator instance.
32
+ /// Represents default coordinate validator instance.
33
33
/// </summary>
34
- internal static ICoordinateValidator Default { get ; private set ; } = new CoordinateValidator ( Defaults . Coordinate . Range . Latitude , Defaults . Coordinate . Range . Longitude ) ;
34
+ internal static ICoordinateValidator Default { get ; } = new CoordinateValidator ( Defaults . Coordinate . Range . Latitude , Defaults . Coordinate . Range . Longitude ) ;
35
35
}
0 commit comments