Struct LineSegmentPoint
Line segment structure retrieved from cvHoughLines2
Implements
Inherited Members
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public struct LineSegmentPoint
Constructors
| Improve this Doc View SourceLineSegmentPoint(Point, Point)
Constructor
Declaration
public LineSegmentPoint(Point p1, Point p2)
Parameters
Type | Name | Description |
---|---|---|
OpenCvSharp.Point | p1 | 1st Point |
OpenCvSharp.Point | p2 | 2nd Point |
Fields
| Improve this Doc View SourceP1
1st Point
Declaration
public Point P1
Field Value
Type | Description |
---|---|
OpenCvSharp.Point |
P2
2nd Point
Declaration
public Point P2
Field Value
Type | Description |
---|---|
OpenCvSharp.Point |
Methods
| Improve this Doc View SourceEquals(LineSegmentPoint)
Specifies whether this object contains the same members as the specified Object.
Declaration
public bool Equals(LineSegmentPoint other)
Parameters
Type | Name | Description |
---|---|---|
LineSegmentPoint | other | The Object to test. |
Returns
Type | Description |
---|---|
System.Boolean | 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.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The Object to test. |
Returns
Type | Description |
---|---|
System.Boolean | This method returns true if obj is the same type as this object and has the same members as this object. |
Overrides
GetHashCode()
Returns a hash code for this object.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | An integer value that specifies a hash value for this object. |
Overrides
IntersectedLineAndSegment(LineSegmentPoint, LineSegmentPoint)
Returns a boolean value indicating whether a line and a segment intersect.
Declaration
public static bool IntersectedLineAndSegment(LineSegmentPoint line, LineSegmentPoint seg)
Parameters
Type | Name | Description |
---|---|---|
LineSegmentPoint | line | Line |
LineSegmentPoint | seg | Segment |
Returns
Type | Description |
---|---|
System.Boolean |
IntersectedSegments(LineSegmentPoint)
Returns a boolean value indicating whether the specified two segments intersect.
Declaration
public bool IntersectedSegments(LineSegmentPoint seg)
Parameters
Type | Name | Description |
---|---|---|
LineSegmentPoint | seg |
Returns
Type | Description |
---|---|
System.Boolean |
IntersectedSegments(LineSegmentPoint, LineSegmentPoint)
Returns a boolean value indicating whether the specified two segments intersect.
Declaration
public static bool IntersectedSegments(LineSegmentPoint seg1, LineSegmentPoint seg2)
Parameters
Type | Name | Description |
---|---|---|
LineSegmentPoint | seg1 | |
LineSegmentPoint | seg2 |
Returns
Type | Description |
---|---|
System.Boolean |
Length()
Declaration
public double Length()
Returns
Type | Description |
---|---|
System.Double |
LineAndSegmentIntersection(LineSegmentPoint, LineSegmentPoint)
Calculates a intersection of a line and a segment
Declaration
public static Point? LineAndSegmentIntersection(LineSegmentPoint line, LineSegmentPoint seg)
Parameters
Type | Name | Description |
---|---|---|
LineSegmentPoint | line | |
LineSegmentPoint | seg |
Returns
Type | Description |
---|---|
System.Nullable<OpenCvSharp.Point> |
LineIntersection(LineSegmentPoint)
Calculates a intersection of the specified two lines
Declaration
public Point? LineIntersection(LineSegmentPoint line)
Parameters
Type | Name | Description |
---|---|---|
LineSegmentPoint | line |
Returns
Type | Description |
---|---|
System.Nullable<OpenCvSharp.Point> |
LineIntersection(LineSegmentPoint, LineSegmentPoint)
Calculates a intersection of the specified two lines
Declaration
public static Point? LineIntersection(LineSegmentPoint line1, LineSegmentPoint line2)
Parameters
Type | Name | Description |
---|---|---|
LineSegmentPoint | line1 | |
LineSegmentPoint | line2 |
Returns
Type | Description |
---|---|
System.Nullable<OpenCvSharp.Point> |
Offset(Point)
Translates the Point by the specified amount.
Declaration
public void Offset(Point p)
Parameters
Type | Name | Description |
---|---|---|
OpenCvSharp.Point | p | The Point used offset this CvPoint. |
Offset(Int32, Int32)
Translates the Point by the specified amount.
Declaration
public void Offset(int x, int y)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | The amount to offset the x-coordinate. |
System.Int32 | y | The amount to offset the y-coordinate. |
SegmentIntersection(LineSegmentPoint)
Calculates a intersection of the specified two segments
Declaration
public Point? SegmentIntersection(LineSegmentPoint seg)
Parameters
Type | Name | Description |
---|---|---|
LineSegmentPoint | seg |
Returns
Type | Description |
---|---|
System.Nullable<OpenCvSharp.Point> |
SegmentIntersection(LineSegmentPoint, LineSegmentPoint)
Calculates a intersection of the specified two segments
Declaration
public static Point? SegmentIntersection(LineSegmentPoint seg1, LineSegmentPoint seg2)
Parameters
Type | Name | Description |
---|---|---|
LineSegmentPoint | seg1 | |
LineSegmentPoint | seg2 |
Returns
Type | Description |
---|---|
System.Nullable<OpenCvSharp.Point> |
ToString()
Converts this object to a human readable string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents this object. |
Overrides
Operators
| Improve this Doc View SourceEquality(LineSegmentPoint, LineSegmentPoint)
Compares two CvPoint objects. The result specifies whether the members of each object are equal.
Declaration
public static bool operator ==(LineSegmentPoint lhs, LineSegmentPoint rhs)
Parameters
Type | Name | Description |
---|---|---|
LineSegmentPoint | lhs | A Point to compare. |
LineSegmentPoint | rhs | A Point to compare. |
Returns
Type | Description |
---|---|
System.Boolean | This operator returns true if the members of left and right are equal; otherwise, false. |
Inequality(LineSegmentPoint, LineSegmentPoint)
Compares two CvPoint objects. The result specifies whether the members of each object are unequal.
Declaration
public static bool operator !=(LineSegmentPoint lhs, LineSegmentPoint rhs)
Parameters
Type | Name | Description |
---|---|---|
LineSegmentPoint | lhs | A Point to compare. |
LineSegmentPoint | rhs | A Point to compare. |
Returns
Type | Description |
---|---|
System.Boolean | This operator returns true if the members of left and right are unequal; otherwise, false. |