TracktionEngine
Loading...
Searching...
No Matches
engine::Ramp Struct Reference

A ramp which goes between 0 and 1 over a set duration. More...

#include <tracktion_ModifierInternal.h>

Public Member Functions

 Ramp ()=default
void setDuration (float newDuration) noexcept
void setPosition (float newPosition) noexcept
void process (float duration) noexcept
float getPosition () const noexcept
float getProportion () const noexcept

Detailed Description

A ramp which goes between 0 and 1 over a set duration.

Constructor & Destructor Documentation

◆ Ramp()

engine::Ramp::Ramp ( )
default

Member Function Documentation

◆ setDuration()

void engine::Ramp::setDuration ( float newDuration)
noexcept

References process().

◆ setPosition()

void engine::Ramp::setPosition ( float newPosition)
noexcept

◆ process()

void engine::Ramp::process ( float duration)
noexcept

Referenced by setDuration().

◆ getPosition()

float engine::Ramp::getPosition ( ) const
noexcept

◆ getProportion()

float engine::Ramp::getProportion ( ) const
noexcept

The documentation for this struct was generated from the following file: