개정판 2d09df82
dev issue #1231 : symbol rotate
Change-Id: Ia191ea61ffcedc08c08b14e3aa5cefabec3bdcbc
DTI_PID/APIDConverter/Utils/APIDUtils.cs | ||
---|---|---|
67 | 67 |
public static SlopeType CalcSlope(double x1, double y1, double x2, double y2) |
68 | 68 |
{ |
69 | 69 |
if (x1 - x2 == 0) |
70 |
{ |
|
71 | 70 |
return SlopeType.VERTICAL; |
72 |
} |
|
73 | 71 |
else |
74 | 72 |
{ |
75 | 73 |
double angle = Math.Atan(Math.Abs(y2 - y1) / Math.Abs(x2 - x1)) * 180 / Math.PI; |
내보내기 Unified diff