doodle
Toggle table of contents
0.12.0
common
Target filter
common
Switch theme
Search in API
Skip to content
doodle
Core
/
io.nacular.doodle.utils
/
lerp
lerp
fun
lerp
(
first
:
Double
,
second
:
Double
,
fraction
:
Float
)
:
Double
(
source
)
fun
lerp
(
first
:
Float
,
second
:
Float
,
fraction
:
Float
)
:
Float
(
source
)
Interpolates between two values.
Parameters
first
value
second
value
fraction
of the way between them
fun
<
T
:
Units
>
lerp
(
first
:
Measure
<
T
>
,
second
:
Measure
<
T
>
,
fraction
:
Float
)
:
Measure
<
T
>
(
source
)
Interpolates between two
Measure
.
Parameters
first
value
second
value
fraction
of the way between them