[]
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)
Public Sub New(bottomLeft As PointF, topLeft As PointF, topRight As PointF, bottomRight As PointF)
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)
Public Sub New(rect As RectangleF)
Type | Name | Description |
---|---|---|
RectangleF | rect | The rectangle. |