Click or drag to resize

RotatedRect Structure

The class represents rotated (i.e. not up-right) rectangles on a plane.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public struct RotatedRect

The RotatedRect type exposes the following members.

Constructors
  NameDescription
Public methodRotatedRect
Constructor
Top
Methods
  NameDescription
Public methodBoundingRect
returns the minimal up-right rectangle containing the rotated rectangle
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodPoints
returns 4 vertices of the rectangle
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Top
Fields
  NameDescription
Public fieldAngle
the rotation angle. When the angle is 0, 90, 180, 270 etc., the rectangle becomes an up-right rectangle.
Public fieldCenter
the rectangle mass center
Public fieldSize
width and height of the rectangle
Top
See Also