sandbox
Loading...
Searching...
No Matches
sbx::math::basic_smooth_value< Type, Mode > Class Template Reference

Public Types

using value_type = Type
 

Public Member Functions

 basic_smooth_value (const value_type value)
 
constexpr auto operator= (const value_type value) -> basic_smooth_value &
 
constexpr auto operator+= (const value_type value) -> basic_smooth_value &
 
constexpr auto operator-= (const value_type value) -> basic_smooth_value &
 
constexpr auto operator*= (const value_type value) -> basic_smooth_value &
 
constexpr auto operator/= (const value_type value) -> basic_smooth_value &
 
constexpr auto operator+ (const value_type value) -> basic_smooth_value
 
constexpr auto operator- (const value_type value) -> basic_smooth_value
 
constexpr auto operator* (const value_type value) -> basic_smooth_value
 
constexpr auto operator/ (const value_type value) -> basic_smooth_value
 
constexpr auto value () const noexcept -> value_type
 
constexpr operator value_type () const noexcept
 
constexpr void update (const units::second &delta_time, const value_type base_speed)
 

Static Public Member Functions

static constexpr auto clamp (const basic_smooth_value &value, const value_type min, const value_type max) -> basic_smooth_value
 
template<floating_point Ratio>
static constexpr auto lerp (const basic_smooth_value &x, const basic_smooth_value &y, const Ratio ratio) -> basic_smooth_value
 

Static Public Attributes

static constexpr auto mode = Mode
 

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