Table of Contents

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

x float

The x.

y float

The y.

Properties

X

Gets the X.

public virtual float X { get; }

Property Value

float

Y

Gets the Y.

public virtual float Y { get; }

Property Value

float

Methods

Equals(object)

Determines whether the specified object is equal to this instance.

public override bool Equals(object other)

Parameters

other object

The object to compare with this instance.

Returns

bool

true if the specified object is equal to this instance; otherwise, false.

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

string

A string that represents this instance.

distance(ResultPoint, ResultPoint)

calculates the distance between two points

public static float distance(ResultPoint pattern1, ResultPoint pattern2)

Parameters

pattern1 ResultPoint

first pattern

pattern2 ResultPoint

second 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