1.9
Public Member Functions | Public Attributes | List of all members
easing_cubic_bezier Struct Reference

Cubic Bezier equation easing function. More...

Public Member Functions

constexpr easing_cubic_bezier (EasingScalar p0=0.42, EasingScalar p1=0, EasingScalar p2=0.58, EasingScalar p3=1) noexcept
 
EasingScalar operator() (EasingScalar p)
 Get the easing value. More...
 

Public Attributes

EasingScalar m_p0 {}
 Point of the cubic-bezier function. More...
 
EasingScalar m_p1 {}
 Point of the cubic-bezier function. More...
 
EasingScalar m_p2 {}
 Point of the cubic-bezier function. More...
 
EasingScalar m_p3 {}
 Point of the cubic-bezier function. More...
 

Detailed Description

Cubic Bezier equation easing function.

Constructor & Destructor Documentation

◆ easing_cubic_bezier()

constexpr easing_cubic_bezier ( EasingScalar  p0 = 0.42,
EasingScalar  p1 = 0,
EasingScalar  p2 = 0.58,
EasingScalar  p3 = 1 
)
inlineexplicitconstexprnoexcept
Parameters
[in]p0Point of the cubic-bezier function.
[in]p1Point of the cubic-bezier function.
[in]p2Point of the cubic-bezier function.
[in]p3Point of the cubic-bezier function.

Member Function Documentation

◆ operator()()

EasingScalar operator() ( EasingScalar  p)

Get the easing value.

Member Data Documentation

◆ m_p0

EasingScalar m_p0 {}

Point of the cubic-bezier function.

◆ m_p1

EasingScalar m_p1 {}

Point of the cubic-bezier function.

◆ m_p2

EasingScalar m_p2 {}

Point of the cubic-bezier function.

◆ m_p3

EasingScalar m_p3 {}

Point of the cubic-bezier function.