toggle menu
BunyipsLib
v6.0.0-master-33a554fa
BunyipsLib
switch theme
search in API
BunyipsLib
/
au.edu.sa.mbhs.studentrobotics.bunyipslib
/
Ramping
/
Value
Value
open
class
Value
:
Ramping
SmoothDamp implementation for a
double
value.
Author
Lucas Bubner, 2024
Since
3.2.0
Members
Constructors
Value
Link copied to clipboard
constructor
(
)
Functions
get
Link copied to clipboard
open
fun
get
(
current
:
Double
,
target
:
Double
)
:
Double
open
fun
get
(
current
:
Float
,
target
:
Float
)
:
Float
Gets a SmoothDamped result from the value supplier.
set
Max
Ramping
Delta
Link copied to clipboard
@
NonNull
open
fun
setMaxRampingDelta
(
maxDelta
:
Double
)
:
Ramping.Value
Set the maximum change in units per second.
set
Ramping
Enabled
Link copied to clipboard
@
NonNull
open
fun
setRampingEnabled
(
enabled
:
Boolean
)
:
Ramping.Value
Set whether the ramping function is enabled.
set
Ramping
Parameters
Link copied to clipboard
@
NonNull
open
fun
setRampingParameters
(
@
NonNull
time
:
Measure
<
Time
>
,
delta
:
Double
)
:
Ramping.Value
Set the ramping parameters of the value.
set
Ramping
Time
Link copied to clipboard
@
NonNull
open
fun
setRampingTime
(
@
NonNull
smoothTime
:
Measure
<
Time
>
)
:
Ramping.Value
Set the time it takes for the value to reach the target.