factor

abstract fun factor(relativeDistance: Float): Float

Factor should return negative values for all elements left of the center and positive for all elements right of the center.

  • It is supposed to be 0 in the center.

  • It can take values from -1 to 1.

  • (factor in -1f..1f)

Parameters

relativeDistance

the center to the distance relative to focused covers size.