TracktionEngine
Public Member Functions | List of all members
tracktion::engine::Ramp Struct Reference

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

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()

tracktion::engine::Ramp::Ramp ( )
default

Member Function Documentation

◆ setDuration()

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

References process().

◆ setPosition()

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

◆ process()

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

Referenced by setDuration().

◆ getPosition()

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

◆ getProportion()

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

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