- Declared in: RT.Coordinates.Cairo
Declaration
public static IEnumerable<Cairo> Rectangle(
int dx,
int dy,
int dw,
int dh
)
Summary
Constructs a grid consisting of 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 four cairos
(arranged in a 2×2). By using doubled values, we effectively support half-integer points and sizes.