toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-foundation
/
korlibs.math.interpolation
/
Ratio
/
Companion
Companion
object
Companion
Members
Properties
HALF
Link copied to clipboard
val
HALF
:
Ratio
Na
N
Link copied to clipboard
val
NaN
:
Ratio
ONE
Link copied to clipboard
val
ONE
:
Ratio
QUARTER
Link copied to clipboard
val
QUARTER
:
Ratio
ZERO
Link copied to clipboard
val
ZERO
:
Ratio
Functions
for
Each
Ratio
Link copied to clipboard
inline
fun
forEachRatio
(
steps
:
Int
,
include0
:
Boolean
=
true
,
include1
:
Boolean
=
true
,
block
:
(
ratio
:
Ratio
)
->
Unit
)
from
Value
In
Range
Link copied to clipboard
inline
fun
fromValueInRange
(
value
:
Number
,
min
:
Number
,
max
:
Number
)
:
Ratio
from
Value
In
Range
Clamped
Link copied to clipboard
inline
fun
fromValueInRangeClamped
(
value
:
Number
,
min
:
Number
,
max
:
Number
)
:
Ratio