C# Класс DiagramUtil, UnityClassDiagram

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

ContainsEdge() публичный статический Метод

public static ContainsEdge ( List positions, Vector2 point, int tolerance ) : bool
positions List
point Vector2
tolerance int
Результат bool

ContainsSegment() публичный статический Метод

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
Результат bool

ExpandRect() публичный статический Метод

public static ExpandRect ( Rect rect, float dw, float dh ) : Rect
rect Rect
dw float
dh float
Результат Rect

ShrinkRect() публичный статический Метод

public static ShrinkRect ( Rect rect, float dw, float dh ) : Rect
rect Rect
dw float
dh float
Результат Rect

TranslateRect() публичный статический Метод

public static TranslateRect ( Rect rect, float dx, float dy ) : Rect
rect Rect
dx float
dy float
Результат Rect

UnionRect() публичный статический Метод

public static UnionRect ( Rect rect, float x1, float y1 ) : Rect
rect Rect
x1 float
y1 float
Результат Rect