Search Results for

    Show / Hide Table of Contents

    Struct RotatedRect

    Represents a possibly rotated rectangle.

    Implements
    IEquatable<RotatedRect>
    Namespace: OpenCV.Net
    Assembly: OpenCV.Net.dll
    Syntax
    public struct RotatedRect : IEquatable<RotatedRect>

    Constructors

    | Improve this Doc View Source

    RotatedRect(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 Source

    Angle

    The rotation angle of the rectangle in degrees.

    Declaration
    public float Angle
    Field Value
    Type Description
    Single
    | Improve this Doc View Source

    Center

    The mass center of the rectangle.

    Declaration
    public Point2f Center
    Field Value
    Type Description
    Point2f
    | Improve this Doc View Source

    Size

    The size of the rectangle.

    Declaration
    public Size2f Size
    Field Value
    Type Description
    Size2f

    Methods

    | Improve this Doc View Source

    Equals(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 other has the same center, size and rotation angle as this instance; otherwise, false.

    | Improve this Doc View Source

    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 to test.

    Returns
    Type Description
    Boolean

    true if obj is a RotatedRect and has the same center, size and rotation angle as this RotatedRect; otherwise, false.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    ToString()

    Creates a representation of this RotatedRect structure.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    A containing the center, size and rotation angle of this RotatedRect structure.

    Operators

    | Improve this Doc View Source

    Equality(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 left and right have equal center, size and rotation angle; otherwise, false.

    | Improve this Doc View Source

    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 left and right differ in center, size or rotation angle; false if left and right are equal.

    Implements

    IEquatable<>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX