{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

MathHelpersKt

public final class MathHelpersKt


Summary

Public methods

static final float
lerp(float start, float stop, float fraction)

Linearly interpolate between start and stop with fraction fraction between them.

static final int
lerp(int start, int stop, float fraction)

Linearly interpolate between start and stop with fraction fraction between them.

static final long
lerp(long start, long stop, float fraction)

Linearly interpolate between start and stop with fraction fraction between them.

Public methods

lerp

public static final float lerp(float start, float stop, float fraction)

Linearly interpolate between start and stop with fraction fraction between them.

lerp

public static final int lerp(int start, int stop, float fraction)

Linearly interpolate between start and stop with fraction fraction between them.

lerp

public static final long lerp(long start, long stop, float fraction)

Linearly interpolate between start and stop with fraction fraction between them.