Show / Hide Table of Contents

Struct LineSegmentPoint

Line segment structure retrieved from cvHoughLines2

Implements
IEquatable<LineSegmentPoint>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public struct LineSegmentPoint

Constructors

| Improve this Doc View Source

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

P1

1st Point

Declaration
public Point P1
Field Value
Type Description
OpenCvSharp.Point
| Improve this Doc View Source

P2

2nd Point

Declaration
public Point P2
Field Value
Type Description
OpenCvSharp.Point

Methods

| Improve this Doc View Source

Equals(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.

| Improve this Doc View Source

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
System.ValueType.Equals(System.Object)
| Improve this Doc View Source

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
System.ValueType.GetHashCode()
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

Length()

Declaration
public double Length()
Returns
Type Description
System.Double
| Improve this Doc View Source

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

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
System.ValueType.ToString()

Operators

| Improve this Doc View Source

Equality(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.

| Improve this Doc View Source

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.

Implements

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