PdfQuad Struct
Represents a quadrilateral - a polygon with four edges (sides) and four vertices (corners).
public struct PdfQuad : IEquatable<PdfQuad>
Public Structure PdfQuad
Implements IEquatable(Of PdfQuad)
Implements
Constructors
PdfQuad(PdfPoint, PdfPoint, PdfPoint, PdfPoint)
Initializes a new instance of the PdfQuad structure.
public PdfQuad(PdfPoint point0, PdfPoint point1, PdfPoint point2, PdfPoint point3)
Public Sub New(point0 As PdfPoint, point1 As PdfPoint, point2 As PdfPoint, point3 As PdfPoint)
Parameters
point0
- PdfPoint
The first point of the quadrilateral.
point1
- PdfPoint
The second point of the quadrilateral.
point2
- PdfPoint
The third point of the quadrilateral.
point3
- PdfPoint
The fourth point of the quadrilateral.
PdfQuad(Double, Double, Double, Double)
Initializes a new instance of the PdfQuad structure from the sides of the quadrilateral.
public PdfQuad(double left, double bottom, double right, double top)
Public Sub New(left As Double, bottom As Double, right As Double, top As Double)
Parameters
left
- System.Double
bottom
- System.Double
right
- System.Double
top
- System.Double
Exceptions
- System.ArgumentException
left
, bottom
, right
or top
is either System.Double.NaN, System.Double.NegativeInfinity or System.Double.PositiveInfinity.
Properties
Bottom
Gets the y-axis value of the bottom of the quadrilateral.
Property Value
- System.Double
The y-axis value of the bottom of the quadrilateral.
Left
Gets the x-axis value of the left side of the quadrilateral.
Property Value
- System.Double
The x-axis value of the left side of the quadrilateral.
Point0
Gets the first point of the quadrilateral.
Property Value
The first point of the quadrilateral.
Point1
Gets the second point of the quadrilateral.
Property Value
The second point of the quadrilateral.
Point2
Gets the third point of the quadrilateral.
Property Value
The third point of the quadrilateral.
Point3
Gets the fourth point of the quadrilateral.
Property Value
The fourth point of the quadrilateral.
Right
Gets the x-axis value of the right side of the quadrilateral.
Property Value
- System.Double
The x-axis value of the right side of the quadrilateral.
Top
Gets the y-axis position of the top of the quadrilateral.
Property Value
- System.Double
The y-axis position of the top of the quadrilateral.
Methods
Equals(PdfQuad)
Parameters
other
- PdfQuad
The other quadrilateral to compare with this quadrilateral instance.
Returns
Equals(Object)
Determines whether the specified System.Object is equal to this PdfQuad instance.
public override bool Equals(object obj)
Public Overrides Function Equals(obj As Object) As Boolean
Parameters
obj
- System.Object
The System.Object to compare with this quadrilateral instance.
Returns
- System.Boolean
Overrides
GetHashCode()
Returns a hash code for this PdfQuad instance.
Returns
- System.Int32
An integer value that specifies a hash value for this PdfQuad instance.
Overrides
ToString()
Returns a System.String that represents this PdfQuad instance.
Returns
- System.String
A System.String that represents this PdfQuad instance.
Overrides
Remarks
This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).
Operators
Equality(PdfQuad, PdfQuad)
Determines whether first
and second
PdfQuads are equal.
public static bool operator ==(PdfQuad first, PdfQuad second)
Public Shared Operator =(first As PdfQuad, second As PdfQuad) As Boolean
Parameters
first
- PdfQuad
The first quadrilateral.
second
- PdfQuad
The second quadrilateral.
Returns
- System.Boolean
true if first
and second
quadrilaterals are equal; otherwise, false.
Inequality(PdfQuad, PdfQuad)
Determines whether first
and second
PdfQuads are not equal.
public static bool operator !=(PdfQuad first, PdfQuad second)
Public Shared Operator <>(first As PdfQuad, second As PdfQuad) As Boolean
Parameters
first
- PdfQuad
The first quadrilateral.
second
- PdfQuad
The second quadrilateral.
Returns
- System.Boolean
true if first
and second
quadrilaterals are not equal; otherwise, false.