개정판 60f4405d
dev issue #000 : 각도 계산 버그 수정
Change-Id: Id76e27e6df0e6119653634714fd24d7fe02749a4
DTI_PID/SPPIDConverter/Util/SPPIDUtil.cs | ||
---|---|---|
194 | 194 |
} |
195 | 195 |
public static double CalcAngle(double x1, double y1, double x2, double y2) |
196 | 196 |
{ |
197 |
double result = 0; |
|
197 |
double result = 90;
|
|
198 | 198 |
if (x1 - x2 != 0) |
199 | 199 |
{ |
200 | 200 |
result = Math.Atan(Math.Abs(y2 - y1) / Math.Abs(x2 - x1)) * 180 / Math.PI; |
내보내기 Unified diff