Click or drag to resize

Rect2f Structure

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntax
[SerializableAttribute]
public struct Rect2f : IEquatable<Rect2f>

The Rect2f type exposes the following members.

Constructors
  NameDescription
Public methodRect2f(Point2f, Size2f)
Initializes a new instance of the Rect2f class
Public methodRect2f(Single, Single, Single, Single)
Initializes a new instance of the Rect2f class
Top
Properties
  NameDescription
Public propertyBottom
Gets the y-coordinate that is the sum of the Y and Height property values of this Rect2f structure.
Public propertyBottomRight
Coordinate of the right-most rectangle corner [Point2f(X+Width, Y+Height)]
Public propertyLeft
Gets the x-coordinate of the left edge of this Rect2f structure.
Public propertyLocation
Coordinate of the left-most rectangle corner [Point2f(X, Y)]
Public propertyRight
Gets the x-coordinate that is the sum of X and Width property values of this Rect2f structure.
Public propertySize
Size of the rectangle [CvSize(Width, Height)]
Public propertyTop
Gets the y-coordinate of the top edge of this Rect2f structure.
Public propertyTopLeft
Coordinate of the left-most rectangle corner [Point2f(X, Y)]
Top
Methods
  NameDescription
Public methodContains(Point2f)
Determines if the specified point is contained within the rectangular region defined by this Rectangle.
Public methodContains(Rect2f)
Determines if the specified rectangle is contained within the rectangular region defined by this Rectangle.
Public methodContains(Single, Single)
Determines if the specified point is contained within the rectangular region defined by this Rectangle.
Public methodEquals(Object)
Specifies whether this object contains the same members as the specified Object.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Rect2f)
Specifies whether this object contains the same members as the specified Object.
Public methodStatic memberFromLTRB
Public methodGetHashCode
Returns a hash code for this object.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInflate(Size2f)
Inflates this Rect by the specified amount.
Public methodInflate(Single, Single)
Inflates this Rect by the specified amount.
Public methodStatic memberInflate(Rect, Int32, Int32)
Creates and returns an inflated copy of the specified Rect2f structure.
Public methodIntersect(Rect2f)
Determines the Rect2f structure that represents the intersection of two rectangles.
Public methodStatic memberIntersect(Rect2f, Rect2f)
Determines the Rect2f structure that represents the intersection of two rectangles.
Public methodIntersectsWith
Determines if this rectangle intersects with rect.
Public methodToString
Converts this object to a human readable string.
(Overrides ValueTypeToString.)
Public methodUnion(Rect2f)
Gets a Rect2f structure that contains the union of two Rect2f structures.
Public methodStatic memberUnion(Rect2f, Rect2f)
Gets a Rect2f structure that contains the union of two Rect2f structures.
Top
Operators
  NameDescription
Public operatorStatic memberAddition(Rect2f, Point2f)
Shifts rectangle by a certain offset
Public operatorStatic memberAddition(Rect2f, Size2f)
Expands or shrinks rectangle by a certain amount
Public operatorStatic memberBitwiseAnd
Determines the Rect2f structure that represents the intersection of two rectangles.
Public operatorStatic memberBitwiseOr
Gets a Rect2f structure that contains the union of two Rect2f structures.
Public operatorStatic memberEquality
Compares two Rectf objects. The result specifies whether the members of each object are equal.
Public operatorStatic memberInequality
Compares two Rectf objects. The result specifies whether the members of each object are unequal.
Public operatorStatic memberSubtraction(Rect2f, Point2f)
Shifts rectangle by a certain offset
Public operatorStatic memberSubtraction(Rect2f, Size2f)
Expands or shrinks rectangle by a certain amount
Top
Fields
  NameDescription
Public fieldStatic memberEmpty
Represents a Rect2f structure with its properties left uninitialized.
Public fieldHeight
Public fieldStatic memberSizeOf
sizeof(Rect)
Public fieldWidth
Public fieldX
Public fieldY
Top
See Also