Quadrilateral
The Quadrilateral
class represents a quadrilateral shape in 2D space, which contains an array of four points, representing the vertices of the quadrilateral.
Definition
Namespace: Dynamsoft.Core.Maui
Assembly: Dynamsoft.Core.Maui
class Quadrilateral
Methods & Properties
Property | Type | Description |
---|---|---|
Points |
Microsoft.Maui.Graphics.Point[] | Four vertexes in a clockwise direction of a quadrilateral. Index 0 represents the left-most vertex. |
Method | Description |
---|---|
Quadrilateral |
The constructor. |
Contains |
Check whether the input point is contained by the quadrilateral. |
GetBoundingRect |
Get the bounding rectangle of the quadrilateral. |
GetArea |
Get the area of the quadrilateral. |
Points
Four vertexes in a clockwise direction of a quadrilateral. Index 0 represents the left-most vertex.
Microsoft.Maui.Graphics.Point[] Points { get; }
Quadrilateral
The constructor.
Quadrilateral(Microsoft.Maui.Graphics.Point[] points);
Contains
Check whether the input point is contained by the quadrilateral.
bool Contains(Microsoft.Maui.Graphics.Point point);
Parameters
[in] point
: Input a point.
Return Value
A boolean value that indicates whether the point is contained by the quadrilateral.
GetBoundingRect
Get the bounding rectangle of the quadrilateral.
Microsoft.Maui.Graphics.Rect GetBoundingRect();
Return Value
The bounding rectangle of the quadrilateral.
GetArea
Get the area of the quadrilateral.
int GetArea();
Return Value
The area of the quadrilateral.