Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 355 Bytes

README_sChs.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);