Declaration
public static IEnumerable<Snubquad> Rectangle(
int dx,
int dy,
int dw,
int dh
)Summary
Returns a set of
Snubquad cells that form a rectangle positioned at (
dx/2,
dy/2) and of size
dw/2 ×
dh/2.
Parameters
| int | dx |
Double the x-coordinate of the top-left corner of the rectangle. |
| int | dy |
Double the y-coordinate of the top-left corner of the rectangle. |
| int | dw |
Double the width of the rectangle. |
| int | dh |
Double the height of the rectangle. |
Remarks
The reason the arguments are all doubled is because a single integer coordinate pair refers to multiple
snubquads (arranged in a 3×2). By using doubled values, we effectively support half-integer points and sizes.
Note that the final number of cells is about
dw×
dh×3/2.