Struct RotatedRect
Represents a possibly rotated rectangle.
Implements
Namespace: OpenCV.Net
Assembly: OpenCV.Net.dll
Syntax
public struct RotatedRect : IEquatable<RotatedRect>
Constructors
| Improve this Doc View SourceRotatedRect(Point2f, Size2f, Single)
Initializes a new instance of the RotatedRect structure with the specified center, size and rotation angle.
Declaration
public RotatedRect(Point2f center, Size2f size, float angle)
Parameters
Type | Name | Description |
---|---|---|
Point2f | center | The coordinates of the mass center of the rectangle. |
Size2f | size | The size of the rectangle. |
Single | angle | The rotation angle of the rectangle in degrees. |
Fields
| Improve this Doc View SourceAngle
The rotation angle of the rectangle in degrees.
Declaration
public float Angle
Field Value
Type | Description |
---|---|
Single |
Center
The mass center of the rectangle.
Declaration
public Point2f Center
Field Value
Type | Description |
---|---|
Point2f |
Size
The size of the rectangle.
Declaration
public Size2f Size
Field Value
Type | Description |
---|---|
Size2f |
Methods
| Improve this Doc View SourceEquals(RotatedRect)
Returns a value indicating whether this instance has the same center, size and rotation angle as a specified RotatedRect structure.
Declaration
public bool Equals(RotatedRect other)
Parameters
Type | Name | Description |
---|---|---|
RotatedRect | other | The RotatedRect structure to compare to this instance. |
Returns
Type | Description |
---|---|
Boolean | true if |
Equals(Object)
Tests to see whether the specified object is a RotatedRect structure with the same center, size and rotation angle as this RotatedRect structure.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The |
Returns
Type | Description |
---|---|
Boolean | true if |
GetHashCode()
Returns a hash code for this RotatedRect structure.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | An integer value that specifies a hash value for this RotatedRect structure. |
ToString()
Creates a
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A |
Operators
| Improve this Doc View SourceEquality(RotatedRect, RotatedRect)
Tests whether two RotatedRect structures are equal.
Declaration
public static bool operator ==(RotatedRect left, RotatedRect right)
Parameters
Type | Name | Description |
---|---|---|
RotatedRect | left | The RotatedRect structure on the left of the equality operator. |
RotatedRect | right | The RotatedRect structure on the right of the equality operator. |
Returns
Type | Description |
---|---|
Boolean | true if |
Inequality(RotatedRect, RotatedRect)
Tests whether two RotatedRect structures are different.
Declaration
public static bool operator !=(RotatedRect left, RotatedRect right)
Parameters
Type | Name | Description |
---|---|---|
RotatedRect | left | The RotatedRect structure on the left of the inequality operator. |
RotatedRect | right | The RotatedRect structure on the right of the inequality operator. |
Returns
Type | Description |
---|---|
Boolean | true if |