메소드 | 설명 | |
---|---|---|
AllZeroes ( |
Returns true if the x, y, width, and height of the rectangle are zero.
|
|
AreaChange ( |
Determines the area change from the first rectangle to the second.
|
|
AreaChangeAsPercent ( |
Determines the area change from the first rectangle to the second.
|
|
AreaDifferenceBetweenRectangles ( |
Calculates the area difference between two rectangles.
|
|
ChildrenAndIntersectingSiblings ( |
Returns all rectangles that intersect with the target rectangle.
|
|
DistanceBetweenRectangles ( |
Calculates the distance between two rectangles.
|
|
PositiveDimensions ( |
Returns true if the width and height of the rectangle are greater than zero.
|
|
PositiveOrZeroCoordinates ( |
Returns true if the x and y of the rectangle are greater than or equal to zero.
|
public static AllZeroes ( |
||
rectangle | The rectangle. | |
리턴 | bool |
public static AreaChange ( |
||
r1 | The first rectangle. | |
r2 | The second rectangle. | |
리턴 | decimal |
public static AreaChangeAsPercent ( |
||
r1 | The first rectangle. | |
r2 | The second rectangle. | |
리턴 | decimal |
public static AreaDifferenceBetweenRectangles ( |
||
r1 | The first rectangle. | |
r2 | The second rectangle. | |
리턴 | long |
public static ChildrenAndIntersectingSiblings ( |
||
rectangle | The target rectangle. | |
rectangles | IEnumerable |
The candidate rectangles. |
리턴 | IEnumerable |
public static DistanceBetweenRectangles ( |
||
r1 | The first rectangle. | |
r2 | The second rectangle. | |
리턴 | decimal |
public static PositiveDimensions ( |
||
rectangle | The rectangle. | |
리턴 | bool |
public static PositiveOrZeroCoordinates ( |
||
rectangle | The rectangle. | |
리턴 | bool |