AlignmentPattern

Encapsulates an alignment pattern, which are the smaller square patterns found in all but the simplest QR Codes.

Properties

Link copied to clipboard
val x: Float
Link copied to clipboard
val y: Float

Functions

Link copied to clipboard
fun aboutEquals(moduleSize: Float, i: Float, j: Float): Boolean

Determines if this alignment pattern "about equals" an alignment pattern at the stated position and size -- meaning, it is at nearly the same center with nearly the same size.

Link copied to clipboard
fun combineEstimate(i: Float, j: Float, newModuleSize: Float): AlignmentPattern

Combines this object's current estimate of a finder pattern position and module size with a new estimate. It returns a new FinderPattern containing an average of the two.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String