| layout | default-layout |
|---|---|
| title | class CQuadrilateral - Dynamsoft Core Module C++ Edition API Reference |
| description | This page shows the C++ edition of the class CQuadrilateral in Dynamsoft Core Module. |
| keywords | quadrilateral, c++ |
| needAutoGenerateSidebar | true |
The CQuadrilateral class represents a quadrilateral shape in 2D space. It contains an array of four CPoint objects, which represent the vertices of the quadrilateral.
Namespace: dynamsoft::basic_structures
Assembly: DynamsoftCore
class CQuadrilateral | Attribute | Type |
|---|---|
points |
CPoint |
id |
int |
| Method | Description |
|---|---|
Contains |
Determines whether a point is inside the quadrilateral. |
GetArea |
Gets the area of the quadrilateral. |
GetBoundingRect |
Gets the bounding rectangle of the quadrilateral. |
The point array of the quadrilateral.
CPoint points[4]See Also
[CPoint]({{ site.dcvb_cpp_api }}core/basic-structures/point.html)
The id of the quadrilateral.
int idDetermines whether a point is inside the quadrilateral.
bool Contains(const CPoint* point) constParameters
[in] point The point to test.
Return value
Returns true if the point inside the quadrilateral, false otherwise.
See Also
[CPoint]({{ site.dcvb_cpp_api }}core/basic-structures/point.html)
Gets the area of the quadrilateral.
int GetArea() constReturn value
Returns the area of the quadrilateral.
Gets the bounding rectangle of the quadrilateral.
CRect GetBoundingRect() const;Return value
Returns the bounding rectangle of the quadrilateral, in type of CRect.