Class Quadrangle

Quadrangle class

Stores a set of four Points that represent a Quadrangle region.

public class Quadrangle : IEquatable<Quadrangle>

Constructors

NameDescription
Quadrangle()Initializes a new empty instance of the Quadrangle class.
Quadrangle(Point, Point, Point, Point)Initializes a new instance of the Quadrangle class with the describing points.

Properties

NameDescription
BoundingRectangle { get; }Gets Rectangle bounding this Quadrangle
IsEmpty { get; }Tests whether all Points of this Quadrangle have values of zero.
LeftBottom { get; set; }Gets left-bottom corner Point of Quadrangle region
LeftTop { get; set; }Gets left-top corner Point of Quadrangle region
RightBottom { get; set; }Gets right-bottom corner Point of Quadrangle region
RightTop { get; set; }Gets right-top corner Point of Quadrangle region

Methods

NameDescription
Contains(Point)Determines if the specified Point is contained within this Quadrangle class.
Contains(Quadrangle)Determines if the specified Quadrangle is contained or intersect this Quadrangle class.
Contains(Rectangle)Determines if the specified Rectangle is contained or intersect this Quadrangle class.
Contains(int, int)Determines if the specified point is contained within this Quadrangle class.
override Equals(object)Returns a value indicating whether this instance is equal to a specified Quadrangle value.
Equals(Quadrangle)Returns a value indicating whether this instance is equal to a specified Quadrangle value.
override GetHashCode()Returns the hash code for this instance.
override ToString()Returns a human-readable string representation of this Quadrangle.
operator ==Returns a value indicating whether the first Quadrangle value is equal to the second.
operator !=Returns a value indicating if the first Quadrangle value is different from the second.

Fields

NameDescription
static readonly EmptyRepresents a Quadrangle class with its properties left uninitialized.

See Also