Méthode | Description | |
---|---|---|
ContainsEdge ( List |
||
ContainsSegment ( float x1, float y1, float x2, float y2, float px, float py, int tolerance ) : bool | ||
ExpandRect ( Rect rect, float dw, float dh ) : Rect | ||
ShrinkRect ( Rect rect, float dw, float dh ) : Rect | ||
TranslateRect ( Rect rect, float dx, float dy ) : Rect | ||
UnionRect ( Rect rect, float x1, float y1 ) : Rect |
public static ContainsEdge ( List |
||
positions | List |
|
point | Vector2 | |
tolerance | int | |
Résultat | bool |
public static ContainsSegment ( float x1, float y1, float x2, float y2, float px, float py, int tolerance ) : bool | ||
x1 | float | |
y1 | float | |
x2 | float | |
y2 | float | |
px | float | |
py | float | |
tolerance | int | |
Résultat | bool |
public static ExpandRect ( Rect rect, float dw, float dh ) : Rect | ||
rect | Rect | |
dw | float | |
dh | float | |
Résultat | Rect |
public static ShrinkRect ( Rect rect, float dw, float dh ) : Rect | ||
rect | Rect | |
dw | float | |
dh | float | |
Résultat | Rect |
public static TranslateRect ( Rect rect, float dx, float dy ) : Rect | ||
rect | Rect | |
dx | float | |
dy | float | |
Résultat | Rect |
public static UnionRect ( Rect rect, float x1, float y1 ) : Rect | ||
rect | Rect | |
x1 | float | |
y1 | float | |
Résultat | Rect |