@@ -79,7 +79,7 @@ public override bool Equals(object? obj)
7979 }
8080 else
8181 {
82- Degree p = ( Degree ) obj ;
82+ Degree p = ( Degree ) obj ;
8383 return IntValue == p . IntValue ;
8484 }
8585 }
@@ -129,7 +129,7 @@ public override int GetHashCode()
129129 /// <param name="b"></param>
130130 /// <returns></returns>
131131 public static Degree operator * ( Degree a , double b )
132- => new Degree ( ( ( int ) ( a . IntValue * b ) ) ) ;
132+ => new Degree ( ( ( int ) ( a . IntValue * b ) ) ) ;
133133
134134 /// <summary>
135135 /// 倍数乘以角度,效果和角度乘以倍数相同
@@ -138,7 +138,7 @@ public override int GetHashCode()
138138 /// <param name="b"></param>
139139 /// <returns></returns>
140140 public static Degree operator * ( double a , Degree b )
141- => new Degree ( ( ( int ) ( a * b . IntValue ) ) ) ;
141+ => new Degree ( ( ( int ) ( a * b . IntValue ) ) ) ;
142142
143143 /// <summary>
144144 /// 角度除以倍数
@@ -153,7 +153,7 @@ public override int GetHashCode()
153153 throw new DivideByZeroException ( ) ;
154154 }
155155
156- return new Degree ( ( int ) ( a . IntValue / b ) ) ;
156+ return new Degree ( ( int ) ( a . IntValue / b ) ) ;
157157 }
158158
159159 /// <summary>
@@ -215,7 +215,7 @@ public override int GetHashCode()
215215 /// <returns></returns>
216216 public static Degree FromDouble ( double value )
217217 {
218- int v = ( int ) ( value * Precision ) ;
218+ int v = ( int ) ( value * Precision ) ;
219219 return new Degree ( v ) ;
220220 }
221221 }
0 commit comments