Click or drag to resize

Rect2d Structure

[Missing <summary> documentation for "T:OpenCvSharp.Rect2d"]

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
[SerializableAttribute]
public struct Rect2d : IEquatable<Rect2d>

The Rect2d type exposes the following members.

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