Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 355 Bytes

README_tChs.md

File metadata and controls

9 lines (7 loc) · 355 Bytes

如何使用

using SheepYhangCN.DirXYCalculate; 添加到你C#檔案的開頭

LengthDir

Target.X+=DirXYCalculate.LengthDirX(角度,到目標點的距離);
Target.Y+=DirXYCalculate.LengthDirY(角度,到目標點的距離);

PointDirection

Target.Angle=DirXYCalculate.PointDirection(當前X,當前Y,目標X,目標Y);