C# Class DiagramUtil, UnityClassDiagram

Afficher le fichier Open project: sashcode/UnityClassDiagram Class Usage Examples

Méthodes publiques

Méthode Description
ContainsEdge ( List positions, Vector2 point, int tolerance ) : bool
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

Method Details

ContainsEdge() public static méthode

public static ContainsEdge ( List positions, Vector2 point, int tolerance ) : bool
positions List
point Vector2
tolerance int
Résultat bool

ContainsSegment() public static méthode

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

ExpandRect() public static méthode

public static ExpandRect ( Rect rect, float dw, float dh ) : Rect
rect Rect
dw float
dh float
Résultat Rect

ShrinkRect() public static méthode

public static ShrinkRect ( Rect rect, float dw, float dh ) : Rect
rect Rect
dw float
dh float
Résultat Rect

TranslateRect() public static méthode

public static TranslateRect ( Rect rect, float dx, float dy ) : Rect
rect Rect
dx float
dy float
Résultat Rect

UnionRect() public static méthode

public static UnionRect ( Rect rect, float x1, float y1 ) : Rect
rect Rect
x1 float
y1 float
Résultat Rect