개정판 fb1e3af2
issue #000: degree to radian 및 연산전 값을 계산하도록 수정
Change-Id: Ibe7e4602e88e26abbe0ed0b612b78d8b10c0961b
MarkupToPDF/Controls/Text/ArrowTextControl.cs | ||
---|---|---|
1641 | 1641 |
//StartPoint에 표시된 Thumb는 dx,dy가 +로 더해줘야한다. |
1642 | 1642 |
if (path.PointSet.IndexOf(selected) != 0) |
1643 | 1643 |
{ |
1644 |
selected.X += Math.Cos(this.Angle) * dx - Math.Sin(this.Angle) * dy; |
|
1645 |
selected.Y += Math.Sin(this.Angle) * dx + Math.Cos(this.Angle) * dy; |
|
1644 |
double radian = this.Angle * Math.PI / 180; |
|
1645 |
double cos = Math.Cos(radian); |
|
1646 |
double sin = Math.Sin(radian); |
|
1646 | 1647 |
|
1648 |
double _dx = dx * cos - dy * sin; |
|
1649 |
double _dy = dx * sin + dy * cos; |
|
1650 |
|
|
1651 |
selected.X += _dx; |
|
1652 |
selected.Y += _dy; |
|
1647 | 1653 |
} |
1648 | 1654 |
else |
1649 | 1655 |
{ |
내보내기 Unified diff