Class ResultPoint
- Namespace
- ZXing
- Assembly
- zxing.dll
Encapsulates a point of interest in an image containing a barcode. Typically, this would be the location of a finder pattern or the corner of the barcode, for example.
public class ResultPoint
- Inheritance
-
ResultPoint
- Derived
- Inherited Members
Constructors
ResultPoint()
Initializes a new instance of the ResultPoint class.
public ResultPoint()
ResultPoint(float, float)
Initializes a new instance of the ResultPoint class.
public ResultPoint(float x, float y)
Parameters
Properties
X
Gets the X.
public virtual float X { get; }
Property Value
Y
Gets the Y.
public virtual float Y { get; }
Property Value
Methods
Equals(object)
Determines whether the specified object is equal to this instance.
public override bool Equals(object other)
Parameters
Returns
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()
Returns
- int
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
ToString()
Returns a string that represents this instance.
public override string ToString()
Returns
distance(ResultPoint, ResultPoint)
calculates the distance between two points
public static float distance(ResultPoint pattern1, ResultPoint pattern2)
Parameters
pattern1
ResultPointfirst pattern
pattern2
ResultPointsecond pattern
Returns
- float
distance between two points
orderBestPatterns(ResultPoint[])
Orders an array of three ResultPoints in an order [A,B,C] such that AB is less than AC and BC is less than AC and the angle between BC and BA is less than 180 degrees.
public static void orderBestPatterns(ResultPoint[] patterns)
Parameters
patterns
ResultPoint[]array of three ResultPoint to order