Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: IEnumerable<Vertex> Vertices(int, int, int, int)

  • 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

intdx Double the x-coordinate of the top-left corner of the rectangle.
intdy Double the y-coordinate of the top-left corner of the rectangle.
intdw Double the width of the rectangle.
intdh 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.