Méthode | Description | |
---|---|---|
ClosestPtOnLine ( System.Point lineStart, System.Point lineEnd, System.Point p ) : System.Point | ||
CompareSlope ( System.Point p1, System.Point p2, System.Point p3 ) : bool | ||
FromSimpleDirection ( int dir ) : int |
Convert a simple direction to an angle.
|
|
GetAngleFromPos ( int x, int y, bool useATAN ) : int | ||
GetClosestPtOnBox ( |
||
GetDistance ( System.Point p1, System.Point p2 ) : int | ||
NormalizeAngle ( int angle ) : int | ||
ToSimpleDir ( bool dirType, int dir ) : int |
public static ClosestPtOnLine ( System.Point lineStart, System.Point lineEnd, System.Point p ) : System.Point | ||
lineStart | System.Point | |
lineEnd | System.Point | |
p | System.Point | |
Résultat | System.Point |
public static CompareSlope ( System.Point p1, System.Point p2, System.Point p3 ) : bool | ||
p1 | System.Point | |
p2 | System.Point | |
p3 | System.Point | |
Résultat | bool |
public static FromSimpleDirection ( int dir ) : int | ||
dir | int | |
Résultat | int |
public static GetAngleFromPos ( int x, int y, bool useATAN ) : int | ||
x | int | |
y | int | |
useATAN | bool | |
Résultat | int |
public static GetClosestPtOnBox ( |
||
box | ||
pIn | System.Point | |
pOut | System.Point | |
Résultat | uint |
public static GetDistance ( System.Point p1, System.Point p2 ) : int | ||
p1 | System.Point | |
p2 | System.Point | |
Résultat | int |
public static NormalizeAngle ( int angle ) : int | ||
angle | int | |
Résultat | int |
public static ToSimpleDir ( bool dirType, int dir ) : int | ||
dirType | bool | |
dir | int | |
Résultat | int |