- Declared in: RT.Coordinates.Cairo
Declaration
public IEnumerable<Vertex> Vertices(
int dx,
int dy,
int dw,
int dh
)
Summary
Returns the vertices along the perimeter of this
Cairo assuming that we’re rendering a rectangle
positioned at (
dx/2,
dy/2) and of size
dw/2 ×
dh/2 and we want the edges of the rectangle straightened.
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.