Struct CircleSegment
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
circle structure retrieved from cvHoughCircle
[Serializable]
[SuppressMessage("Design", "CA1051: Do not declare visible instance fields")]
public struct CircleSegment : IEquatable<CircleSegment>
- Implements
- Inherited Members
Constructors
CircleSegment(Point2f, float)
Constructor
public CircleSegment(Point2f center, float radius)
Parameters
Fields
Center
Center coordinate of the circle
public Point2f Center
Field Value
Radius
Radius
public float Radius
Field Value
Methods
Equals(CircleSegment)
Specifies whether this object contains the same members as the specified Object.
public bool Equals(CircleSegment other)
Parameters
otherCircleSegmentThe Object to test.
Returns
- bool
This method returns true if obj is the same type as this object and has the same members as this object.
Equals(object?)
Specifies whether this object contains the same members as the specified Object.
public override bool Equals(object? obj)
Parameters
objobjectThe Object to test.
Returns
- bool
This method returns true if obj is the same type as this object and has the same members as this object.
GetHashCode()
Returns a hash code for this object.
public override int GetHashCode()
Returns
- int
An integer value that specifies a hash value for this object.
ToString()
Converts this object to a human readable string.
public override string ToString()
Returns
- string
A string that represents this object.
Operators
operator ==(CircleSegment, CircleSegment)
Compares two CvPoint objects. The result specifies whether the members of each object are equal.
public static bool operator ==(CircleSegment lhs, CircleSegment rhs)
Parameters
lhsCircleSegmentA Point to compare.
rhsCircleSegmentA Point to compare.
Returns
- bool
This operator returns true if the members of left and right are equal; otherwise, false.
operator !=(CircleSegment, CircleSegment)
Compares two CvPoint objects. The result specifies whether the members of each object are unequal.
public static bool operator !=(CircleSegment lhs, CircleSegment rhs)
Parameters
lhsCircleSegmentA Point to compare.
rhsCircleSegmentA Point to compare.
Returns
- bool
This operator returns true if the members of left and right are unequal; otherwise, false.