Resource Base
Table of contents

CQuadrilateral

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.

Definition

Namespace: dynamsoft::basic_structures

Assembly: DynamsoftCore

class CQuadrilateral 

Attributes Summary

Attribute Type
points CPoint

Methods Summary

Method Description
Contains Determines whether a point is inside the quadrilateral.
GetArea Gets the area of the quadrilateral.

points

The point array of the quadrilateral.

CPoint points[4]

See Also

CPoint

Contains

Determines whether a point is inside the quadrilateral.

bool Contains(const CPoint* point) const

Parameters

[in] point The point to test.

Return value

Returns true if the point inside the quadrilateral, false otherwise.

See Also

CPoint

GetArea

Gets the area of the quadrilateral.

int GetArea() const

Return value

Returns the area of the quadrilateral.

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version (2.2.20)
    • Version 2.x
      • Version 2.2.10
      • Version 2.2.0
      • Version 2.0.30
      • Version 2.0.20
      • Version 2.0.10
      • Version 2.0.0
    Change +
    © 2003–2024 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support