@@ -11,129 +11,129 @@ namespace PolylineAlgorithm.Abstraction.Internal;
1111/// Organizes defaults for algorithm parameters, polyline encoding, and geographic coordinates into nested static classes.
1212/// </summary>
1313[ ExcludeFromCodeCoverage ]
14- internal static class LibraryDefaults {
14+ internal static class Defaults {
1515 /// <summary>
1616 /// Contains default values and constants specific to the polyline encoding algorithm.
1717 /// </summary>
18- public static class Algorithm {
18+ internal static class Algorithm {
1919 /// <summary>
2020 /// The precision factor used to round coordinate values during polyline encoding.
2121 /// </summary>
22- public const int Precision = 100_000 ;
22+ internal const int Precision = 100_000 ;
2323
2424 /// <summary>
2525 /// The number of bits to shift during polyline encoding.
2626 /// </summary>
27- public const byte ShiftLength = 5 ;
27+ internal const byte ShiftLength = 5 ;
2828
2929 /// <summary>
3030 /// The ASCII value for the question mark character ('?').
3131 /// </summary>
32- public const byte QuestionMark = 63 ;
32+ internal const byte QuestionMark = 63 ;
3333
3434 /// <summary>
3535 /// The ASCII value for the space character (' ').
3636 /// </summary>
37- public const byte Space = 32 ;
37+ internal const byte Space = 32 ;
3838
3939 /// <summary>
4040 /// The ASCII value for the unit separator character.
4141 /// </summary>
42- public const byte UnitSeparator = 31 ;
42+ internal const byte UnitSeparator = 31 ;
4343 }
4444
45- public static class Coordinate {
45+ internal static class Coordinate {
4646 /// <summary>
4747 /// Provides constants representing latitude values, including the default, minimum, and maximum valid values.
4848 /// </summary>
49- public static class Latitude {
49+ internal static class Latitude {
5050 /// <summary>
5151 /// The default value for latitude, representing the equator.
5252 /// </summary>
53- public const double Default = 0.00000 ;
53+ internal const double Default = 0.00000 ;
5454 /// <summary>
5555 /// The minimum valid latitude value.
5656 /// </summary>
57- public const double Min = - 90.00000 ;
57+ internal const double Min = - 90.00000 ;
5858 /// <summary>
5959 /// The maximum valid latitude value.
6060 /// </summary>
61- public const double Max = 90.00000 ;
61+ internal const double Max = 90.00000 ;
6262
6363 /// <summary>
6464 /// Contains constants related to normalized latitude values.
6565 /// </summary>
66- public static class Normalized {
66+ internal static class Normalized {
6767 /// <summary>
6868 /// The minimum normalized latitude value.
6969 /// </summary>
70- public const int Min = ( int ) ( Latitude . Min * Algorithm . Precision ) ;
70+ internal const int Min = ( int ) ( Latitude . Min * Algorithm . Precision ) ;
7171 /// <summary>
7272 /// The maximum normalized latitude value.
7373 /// </summary>
74- public const int Max = ( int ) ( Latitude . Max * Algorithm . Precision ) ;
74+ internal const int Max = ( int ) ( Latitude . Max * Algorithm . Precision ) ;
7575 }
7676 }
7777
7878 /// <summary>
7979 /// Provides constants representing longitude values, including the default, minimum, and maximum valid values.
8080 /// </summary>
81- public static class Longitude {
81+ internal static class Longitude {
8282 /// <summary>
8383 /// The default value for longitude, representing the equator.
8484 /// </summary>
85- public const double Default = 0.00000 ;
85+ internal const double Default = 0.00000 ;
8686 /// <summary>
8787 /// The minimum valid longitude value.
8888 /// </summary>
89- public const double Min = - 180.00000 ;
89+ internal const double Min = - 180.00000 ;
9090 /// <summary>
9191 /// The maximum valid longitude value.
9292 /// </summary>
93- public const double Max = 180.00000 ;
93+ internal const double Max = 180.00000 ;
9494
9595 /// <summary>
9696 /// Contains constants related to normalized longitude values.
9797 /// </summary>
98- public static class Normalized {
98+ internal static class Normalized {
9999 /// <summary>
100100 /// The minimum normalized latitude value.
101101 /// </summary>
102- public const int Min = ( int ) ( Longitude . Min * Algorithm . Precision ) ;
102+ internal const int Min = ( int ) ( Longitude . Min * Algorithm . Precision ) ;
103103 /// <summary>
104104 /// The maximum normalized latitude value.
105105 /// </summary>
106- public const int Max = ( int ) ( Longitude . Max * Algorithm . Precision ) ;
106+ internal const int Max = ( int ) ( Longitude . Max * Algorithm . Precision ) ;
107107 }
108108 }
109109 }
110110
111111 /// <summary>
112112 /// Contains default values and constants related to polyline.
113113 /// </summary>
114- public static class Polyline {
114+ internal static class Polyline {
115115 /// <summary>
116116 /// Contains constants related to the polyline blocks.
117117 /// </summary>
118- public static class Block {
118+ internal static class Block {
119119 /// <summary>
120120 /// An array of delimiter byte values used in polyline encoding, derived by adding the ASCII value of the question mark ('?') to a range of integers.
121121 /// </summary>
122- public static readonly byte [ ] Delimiters = [ .. Enumerable . Range ( 0 , 32 ) . Select ( n => ( byte ) ( n + Algorithm . QuestionMark ) ) ] ;
122+ internal static readonly byte [ ] Delimiters = [ .. Enumerable . Range ( 0 , 32 ) . Select ( n => ( byte ) ( n + Algorithm . QuestionMark ) ) ] ;
123123
124124 /// <summary>
125125 /// Contains constants related to the length of encoded coordinates in polyline encoding.
126126 /// </summary>
127- public static class Length {
127+ internal static class Length {
128128 /// <summary>
129129 /// The minimum number of characters required to represent an encoded coordinate.
130130 /// </summary>
131- public const int Min = 2 ;
131+ internal const int Min = 2 ;
132132
133133 /// <summary>
134134 /// The maximum number of characters allowed to represent an encoded coordinate.
135135 /// </summary>
136- public const int Max = 12 ;
136+ internal const int Max = 12 ;
137137 }
138138 }
139139 }
0 commit comments