Click or drag to resize

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: 24.2.419.0 (24.2.419.0)
Syntax
public struct BoundingRectangle : IEquatable<BoundingRectangle>, 
	IEquatableEpsilon<BoundingRectangle>

The BoundingRectangle type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyBottom
Gets the y-coordinate of the bottom edge of the rectangle.
Public propertyStatic memberEmpty
Gets a BoundingRectangle with all values set to zero.
Public propertyHeight
Gets the height of the rectangle.
Public propertyItem
Gets the value of the specified element with index of 0, 1, 2, and 3 corresponding to the coordinates Left, Bottom, Right, and Top.
Public propertyLeft
Gets the x-coordinate of the left edge of the rectangle.
Public propertyLength
Gets the number of elements in this set of coordinates.
Public propertyRight
Gets the x-coordinate of the right edge of the rectangle.
Public propertyTop
Gets the y-coordinate of the top edge of the rectangle.
Public propertyWidth
Gets the width of the rectangle.
Top
Methods
  NameDescription
Public methodEquals(BoundingRectangle)
Indicates whether another instance of this type is exactly equal to this instance.
Public methodEquals(Object)
Indicates whether another object is exactly equal to this instance.
(Overrides ValueTypeEquals(Object).)
Public methodEqualsEpsilon
Indicates whether each coordinate value of another instance of this type is within the required tolerance of the corresponding coordinate value of this instance.
Public methodStatic memberFromWidthHeight
Initializes a new instance.
Public methodGetHashCode
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns the string representation of the value of this instance.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Returns if the two instances are exactly equal.
Public operatorStatic memberInequality
Returns if the two instances are not exactly equal.
Top
See Also