메소드 | 설명 | |
---|---|---|
CalculateIntersectPercentage ( |
Calculates the percentage of the intersection of two rectangles.
|
|
CreateRectangleFromPoints ( |
Creates a rectangle from two corner points.
|
|
CreateRectangleFromRectangles ( IEnumerable |
Creates a rectangle containing n other rectangles.
|
|
CreateRectangleFromRectangles ( |
Creates a rectangle containing two other rectangles.
|
|
GetCenter ( this rectangle, float offsetX = 0f, float offsetY = 0f ) : |
Calculates the center-point of a rectangle adding an offset.
|
|
Move ( this rectangle, float offsetX = 0f, float offsetY = 0f ) : |
Moves a rectangle by a adding an offset.
|
public static CalculateIntersectPercentage ( |
||
rect | The rectangle from which the percentage should be calculated. | |
referenceRect | The intersecting rectangle. | |
리턴 | float |
public static CreateRectangleFromPoints ( |
||
point1 | The first point. | |
point2 | The second points. | |
리턴 |
public static CreateRectangleFromRectangles ( IEnumerable |
||
rectangles | IEnumerable |
The list of rectangles. |
리턴 |
public static CreateRectangleFromRectangles ( |
||
rectangle1 | The first rectangle. | |
rectangle2 | The second rectangle. | |
리턴 |
public static GetCenter ( this rectangle, float offsetX = 0f, float offsetY = 0f ) : |
||
rectangle | this | The rectangle. |
offsetX | float | The offset for the x-value |
offsetY | float | The offset for the y-value |
리턴 |
public static Move ( this rectangle, float offsetX = 0f, float offsetY = 0f ) : |
||
rectangle | this | The rectangle. |
offsetX | float | The offset for the x-value |
offsetY | float | The offset for the y-value |
리턴 |