[]
Initializes a new instance of the Quadrilateral struct from the four corners of a rectangle.
The vertices's of the quadrilateral correspond to the corners of the rectangle clockwise starting from the bottom left vertex.
public Quadrilateral(PointF bottomLeft, PointF topLeft, PointF topRight, PointF bottomRight)
| Type | Name | Description |
|---|---|---|
| PointF | bottomLeft | The rectangle's bottom left corner. |
| PointF | topLeft | The rectangle's top left corner. |
| PointF | topRight | The rectangle's top right corner. |
| PointF | bottomRight | The rectangle's bottom right corner. |
Initializes a new instance of the Quadrilateral struct from a rectangle.
The vertices's of the quadrilateral correspond to the corners of the rectangle clockwise starting from the bottom left vertex.
public Quadrilateral(RectangleF rect)
| Type | Name | Description |
|---|---|---|
| RectangleF | rect | The rectangle. |