Table of contents

Quadrilateral

The Quadrilateral class represents a quadrilateral shape in 2D space. It contains an array of four Point objects, which represent the vertices of the quadrilateral.

Definition

Namespace: Dynamsoft.Core

public class Quadrilateral 

Attributes

Attribute Type
points Point
id int

points

The array of points that define the quadrilateral.

Point[] points

See Also

Point

id

The id of the quadrilateral.

int id

Methods

Method Description
Quadrilateral Initializes a new instance of the Quadrilateral class with default values.
Contains Determines whether a point is inside the quadrilateral.
GetArea Gets the area of the quadrilateral.
GetBoundingRect Gets the bounding rectangle of the quadrilateral.
this Gets or sets the point at the specified index in the quadrilateral.

Quadrilateral

Initializes a new instance of the Quadrilateral class with default values.

Quadrilateral()

Contains

Determines whether a point is inside the quadrilateral.

bool Contains(Point pt)

Parameters

[in] pt The point to test.

Return value

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

See Also

Point

GetArea

Gets the area of the quadrilateral.

int GetArea()

Return value

Returns the area of the quadrilateral.

GetBoundingRect

Gets the bounding rectangle of the quadrilateral.

Rect GetBoundingRect()

Return value

Returns the bounding rectangle of the quadrilateral, in type of Rect.

See Also

Rect

This

Gets or sets the point at the specified index in the quadrilateral.

Point this[int index]

Parameters

[in] index The index of the point to get or set.

Return Value

Returns the point at the specified index.

See Also

Point

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: