개정판 168f8027
issue #812 상단 Angle 컨트롤에 아무것도 안나오는 문제 및 빌드 오류 수정
Change-Id: Ic2b9da31e24cba6185dd5765a1ce2947fa1ebf55
MarkupToPDF/Controls/Common/MathSet.cs | ||
---|---|---|
392 | 392 |
return (cross > 0) ? radian * MathSet.Rad2Deg : -(radian * MathSet.Rad2Deg); |
393 | 393 |
} |
394 | 394 |
|
395 |
// 사용용도가 불분명함. |
|
395 | 396 |
public static string returnAngleString(Point start, ref Point end, bool PressShift) |
396 | 397 |
{ |
397 | 398 |
double angle = MathSet.getAngle(start.X, start.Y, end.X, end.Y); |
... | ... | |
415 | 416 |
} |
416 | 417 |
} |
417 | 418 |
|
419 |
|
|
420 |
/// <summary> |
|
421 |
/// returnAngleString을 변경하여 수정 |
|
422 |
/// 상단 컨트롤에 Angle값을 보여주기 위해 수정함. |
|
423 |
/// </summary> |
|
424 |
/// <param name="start"></param> |
|
425 |
/// <param name="end"></param> |
|
426 |
/// <param name="PressShift"></param> |
|
427 |
/// <returns></returns> |
|
428 |
public static double returnAngle(Point start, ref Point end, bool PressShift) |
|
429 |
{ |
|
430 |
double angle = MathSet.getAngle(start.X, start.Y, end.X, end.Y); |
|
431 |
double approxAngle = MathSet.getMultipleAngle(UnitAngle, angle); |
|
432 |
|
|
433 |
if (PressShift) |
|
434 |
{ |
|
435 |
double distance = MathSet.DistanceTo(start, end); |
|
436 |
end = MathSet.RotateAbout(start, new Point(start.X + distance, start.Y), approxAngle); |
|
437 |
|
|
438 |
angle = approxAngle; |
|
439 |
} |
|
440 |
|
|
441 |
return angle; |
|
442 |
} |
|
443 |
|
|
418 | 444 |
public static Point getRectMiddlePoint(Rect data) |
419 | 445 |
{ |
420 | 446 |
Point startP = new Point(data.X, data.Y); |
내보내기 Unified diff