24#ifndef TAPROOT_RAMP_HPP_
25#define TAPROOT_RAMP_HPP_
50 explicit Ramp(
float initialValue = 0.0f);
53 void reset(
float val);
69 void update(
float increment);
81 static constexpr float RAMP_EPSILON = 0.00000000001f;
void setTarget(float target)
Sets a new target ramp value.
Definition ramp.cpp:43
void reset(float val)
Sets the target and value to the passed in val.
Definition ramp.cpp:36
float getValue() const
Returns the current value being generated by the ramp.
Definition ramp.cpp:62
void setValue(float value)
Sets the value to value.
Definition ramp.cpp:52
float getTarget() const
Returns the target value (where the ramp generator will head torwards).
Definition ramp.cpp:66
bool isTargetReached() const
Returns true if the value == target.
Definition ramp.cpp:64
void update(float increment)
Definition ramp.cpp:54
Definition ballistics.cpp:29