[]
        
(Showing Draft Content)

GrapeCity.Documents.Common.Quadrilateral

Quadrilateral Struct

Represents a quadrilateral defined by its four vertices's.

Namespace: GrapeCity.Documents.Common
Assembly: DS.Documents.Imaging.dll
Syntax
public struct Quadrilateral : IEquatable<Quadrilateral>
Public Structure Quadrilateral
    Implements IEquatable(Of Quadrilateral)

Constructors

Name Description
Quadrilateral(PointF, PointF, PointF, PointF)

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.

Quadrilateral(RectangleF)

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.

Fields

Name Description
A

The first vertex of the quadrilateral.

If initialized from a rectangle, corresponds to the rectangle's bottom left corner.

B

The second vertex of the quadrilateral.

If initialized from a rectangle, corresponds to the rectangle's top left corner.

C

The third vertex of the quadrilateral.

If initialized from a rectangle, corresponds to the rectangle's top right corner.

D

The fourth vertex of the quadrilateral.

If initialized from a rectangle, corresponds to the rectangle's bottom right corner.

Methods

Name Description
Equals(Quadrilateral)
Equals(object)
GetArea()

Returns the area of the quadrilateral.

GetHashCode()
Multiply(float, float)

Multiplies this Quadrilateral by the x and y.

Offset(Quadrilateral, float, float)

Offsets all points of this Quadrilateral by the x and y.

Offset(float, float)

Offsets all points of this Quadrilateral by the x and y.

ToRect()

Creates a RectangleF structure that contains this Quadrilateral.

ToString()

Operators

Name Description
operator ==(Quadrilateral, Quadrilateral)

Tests whether two specified Quadrilateral objects are equivalent.

implicit operator Quadrilateral(RectangleF)

Converts a RectangleF to Quadrilateral.

operator !=(Quadrilateral, Quadrilateral)

Tests whether two specified Quadrilateral objects are NOT equivalent.