ParabolicValuesDistribution

Represents a parabolic distribution strategy for slider values.

This strategy calculates interpolated and inversely interpolated values based on a parabolic equation: f(x) = a * x^2 + b * x + c

Constructors

Link copied to clipboard
constructor(a: Float, b: Float, c: Float)

Creates a ParabolicValueDistribution with the given coefficients.

Functions

Link copied to clipboard
open override fun interpolate(value: Float): Float

Interpolates a value based on the distribution strategy.

Link copied to clipboard
open override fun inverse(value: Float): Float

Inversely interpolates a value from the output range to the input range based on the distribution strategy.