C# Class DiagramUtil, UnityClassDiagram

Show file Open project: sashcode/UnityClassDiagram Class Usage Examples

Public Methods

Method 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 method

public static ContainsEdge ( List positions, Vector2 point, int tolerance ) : bool
positions List
point Vector2
tolerance int
return bool

ContainsSegment() public static method

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
return bool

ExpandRect() public static method

public static ExpandRect ( Rect rect, float dw, float dh ) : Rect
rect Rect
dw float
dh float
return Rect

ShrinkRect() public static method

public static ShrinkRect ( Rect rect, float dw, float dh ) : Rect
rect Rect
dw float
dh float
return Rect

TranslateRect() public static method

public static TranslateRect ( Rect rect, float dx, float dy ) : Rect
rect Rect
dx float
dy float
return Rect

UnionRect() public static method

public static UnionRect ( Rect rect, float x1, float y1 ) : Rect
rect Rect
x1 float
y1 float
return Rect