Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 497 Bytes

README.md

File metadata and controls

12 lines (10 loc) · 497 Bytes
Languages
English, 简体中文, 繁體中文, 日本語

How to use

Add using SheepYhangCN.DirXYCalculate; at the head of your C# file

LengthDir

Target.X+=DirXYCalculate.LengthDirX(Angle,Range to target);
Target.Y+=DirXYCalculate.LengthDirY(Angle,Range to target);

PointDirection

Target.Angle=DirXYCalculate.PointDirection(X of this point,Y of this point,X of target point,Y of target point);