Versions in this module Expand all Collapse all v0 v0.1.0 Jan 18, 2025 Changes in this version + func DenormalizePosition(currVal float64, startVal, endVal uint) uint + func NormalisePosition(startPos, endPos, currPos uint) float64 + type EaseIn struct + Power float64 + func NewEaseIn(power float64) *EaseIn + func (ei EaseIn) GetValue(startPos, endPos, currPos uint) float64 + type EaseInOut struct + Power float64 + func NewEaseInOut() *EaseInOut + func (eio EaseInOut) GetValue(startPos, endPos, currPos uint) float64 + type EaseOut struct + Power float64 + func NewEaseOut(power float64) *EaseOut + func (eo EaseOut) GetValue(startPos, endPos, currPos uint) float64 + type Easing interface + GetValue func(startPos, endPos, currPos uint) float64 + type Exponential struct + Factor float64 + func NewExponential(factor float64) *Exponential + func (exp Exponential) GetValue(startPos, endPos, currPos uint) float64 + type InverseExponential struct + Factor float64 + func NewInverseExponential() *InverseExponential + func (invexp InverseExponential) GetValue(startPos, endPos, currPos uint) float64 + type InverseLogarithmic struct + Base float64 + func NewInverseLogarithmic(base float64) *InverseLogarithmic + func (invlog InverseLogarithmic) GetValue(startPos, endPos, currPos uint) float64 + type LERP struct + func NewLERP() *LERP + func (lerp LERP) GetValue(startPos, endPos, currPos uint) float64 + type Logarithmic struct + Base float64 + func NewLogarithmic(base float64) *Logarithmic + func (log Logarithmic) GetValue(startPos, endPos, currPos uint) float64 + type SCurve struct + Midpoint float64 + Sharpness float64 + func NewSCurve(sharpness float64, midpoint float64) *SCurve + func (sc SCurve) GetValue(startPos, endPos, currPos uint) float64