A CSS cubic-bezier(x1, y1, x2, y2) timing curve: maps the share of a transition's time that has passed (0..1) to how far its value has gone (0..1).
More...
#include <gui_core/gui_easing.h>
|
| float | operator() (float t) const |
| | How far the value has gone at time t.
|
| float | TimeAt (float value) const |
| | The time at which the value has gone value of the way: the inverse of operator(), for curves whose y only grows (every curve below).
|
| bool | operator== (const CubicBezier &) const =default |
|
| float | x1 = 0.0f |
| float | y1 = 0.0f |
| float | x2 = 1.0f |
| float | y2 = 1.0f |
A CSS cubic-bezier(x1, y1, x2, y2) timing curve: maps the share of a transition's time that has passed (0..1) to how far its value has gone (0..1).
◆ operator()()
| float tachyon::CubicBezier::operator() |
( |
float | t | ) |
const |
|
inline |
How far the value has gone at time t.
◆ TimeAt()
| float tachyon::CubicBezier::TimeAt |
( |
float | value | ) |
const |
|
inline |
The time at which the value has gone value of the way: the inverse of operator(), for curves whose y only grows (every curve below).
◆ operator==()
| bool tachyon::CubicBezier::operator== |
( |
const CubicBezier & | | ) |
const |
|
default |
◆ x1
| float tachyon::CubicBezier::x1 = 0.0f |
◆ y1
| float tachyon::CubicBezier::y1 = 0.0f |
◆ x2
| float tachyon::CubicBezier::x2 = 1.0f |
◆ y2
| float tachyon::CubicBezier::y2 = 1.0f |
The documentation for this struct was generated from the following file: