# BoundingRectangle Structure

A bounding rectangle in a two-dimensional plane given by two corner points.

Namespace:  AGI.Foundation.Coordinates
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 23.1.416.0 (23.1.416.0)
Syntax
```public struct BoundingRectangle : IEquatable<BoundingRectangle>,
IEquatableEpsilon<BoundingRectangle>```

The BoundingRectangle type exposes the following members.

Constructors
NameDescription
BoundingRectangle(Double)
Initializes a new instance from the first four consecutive elements in the provided array.
BoundingRectangle(Double, Int32)
Initializes a new instance from four consecutive elements in the provided array.
BoundingRectangle(Double, Double, Double, Double)
Initializes a new instance.
Top
Properties
NameDescription
Bottom
Gets the y-coordinate of the bottom edge of the rectangle.
Empty
Gets a BoundingRectangle with all values set to zero.
Height
Gets the height of the rectangle.
Item
Gets the value of the specified element with index of 0, 1, 2, and 3 corresponding to the coordinates Left, Bottom, Right, and Top.
Left
Gets the x-coordinate of the left edge of the rectangle.
Length
Gets the number of elements in this set of coordinates.
Right
Gets the x-coordinate of the right edge of the rectangle.
Top
Gets the y-coordinate of the top edge of the rectangle.
Width
Gets the width of the rectangle.
Top
Methods
NameDescription
Equals(BoundingRectangle)
Indicates whether another instance of this type is exactly equal to this instance.
Equals(Object)
Indicates whether another object is exactly equal to this instance.
(Overrides ValueTypeEquals(Object).)
EqualsEpsilon
Indicates whether each coordinate value of another instance of this type is within the required tolerance of the corresponding coordinate value of this instance.
FromWidthHeight
Initializes a new instance.
GetHashCode
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table.
(Overrides ValueTypeGetHashCode.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
ToString
Returns the string representation of the value of this instance.
(Overrides ValueTypeToString.)
Top
Operators
NameDescription
Equality
Returns if the two instances are exactly equal.
Inequality
Returns if the two instances are not exactly equal.
Top