@@ -36,17 +36,6 @@ public PointId(int x, int y)
3636 Y = y ;
3737 }
3838
39- /// <summary>
40- /// Initializes a new instance of the <see cref="PointId" /> class.
41- /// </summary>
42- /// <param name="x">The x in double.</param>
43- /// <param name="y">The yin double.</param>
44- public PointId ( double x , double y )
45- {
46- X = ( int ) Math . Round ( x , 1 , MidpointRounding . AwayFromZero ) ;
47- Y = ( int ) Math . Round ( y , 1 , MidpointRounding . AwayFromZero ) ;
48- }
49-
5039 /// <summary>
5140 /// Initializes a new instance of the <see cref="PointId" /> class.
5241 /// </summary>
@@ -60,21 +49,6 @@ public PointId(int x, int y, int width)
6049 Id = CalculateId ( x , y , width ) ;
6150 }
6251
63- /// <summary>
64- /// Initializes a new instance of the <see cref="PointId" /> class.
65- /// </summary>
66- public PointId ( )
67- {
68- }
69-
70- /// <summary>
71- /// Gets the null point.
72- /// </summary>
73- /// <value>
74- /// The null point.
75- /// </value>
76- public static PointId NullPoint { get ; } = new ( 0 , 0 ) ;
77-
7852 /// <summary>
7953 /// Gets the identifier of the Coordinate in the 2D System.
8054 /// </summary>
@@ -109,14 +83,6 @@ public PointId()
10983 public static PointId FromId ( int id , int width ) =>
11084 new ( id % width , id / width ) ;
11185
112- /// <summary>
113- /// Converts to id.
114- /// </summary>
115- /// <param name="width">The width.</param>
116- /// <returns>Id of Point</returns>
117- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
118- public int ToId ( int width ) => Y * width + X ;
119-
12086 /// <summary>
12187 /// Equals the specified other.
12288 /// </summary>
0 commit comments