개정판 3b797b23
Fix: CircleControl 회전 적용 중...
Change-Id: I4711f5cc93af7158369d745d9efa765491060841
MarkupToPDF/Controls/Common/MathSet.cs | ||
---|---|---|
265 | 265 |
|
266 | 266 |
public static Point getMiddlePoint(Point p1, Point p2) |
267 | 267 |
{ |
268 |
return new Point { X = (p1.X + p2.X) / 2, Y = (p1.Y + p2.Y) / 2 };
|
|
268 |
return new Point { X = (p1.X + p2.X) * 0.5, Y = (p1.Y + p2.Y) * 0.5 };
|
|
269 | 269 |
} |
270 | 270 |
|
271 | 271 |
/// <summary> |
... | ... | |
327 | 327 |
return new Point(getThePointX / count, getThePointY / count); |
328 | 328 |
} |
329 | 329 |
|
330 |
/// <summary> |
|
331 |
/// org 기준으로 dest를 dAngle(in degree)만큼 회전 시킨다. |
|
332 |
/// </summary> |
|
333 |
/// <param name="org"></param> |
|
334 |
/// <param name="dest"></param> |
|
335 |
/// <param name="dAngle"></param> |
|
336 |
/// <returns></returns> |
|
330 | 337 |
public static Point RotateAbout(Point org, Point dest, double dAngle) |
331 | 338 |
{ |
332 | 339 |
double ptx = dest.X - org.X; |
내보내기 Unified diff