|
|
|
@ -37,9 +37,9 @@ using namespace Magnum::Math::Literals; |
|
|
|
int main() { |
|
|
|
int main() { |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
Vector3 a, b; |
|
|
|
|
|
|
|
Float t{}; |
|
|
|
Float t{}; |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
Vector3 a, b; |
|
|
|
/* [ease] */ |
|
|
|
/* [ease] */ |
|
|
|
auto lerpBounceIn = |
|
|
|
auto lerpBounceIn = |
|
|
|
Animation::ease<Vector3, Math::lerp, Animation::Easing::bounceIn>(); |
|
|
|
Animation::ease<Vector3, Math::lerp, Animation::Easing::bounceIn>(); |
|
|
|
@ -303,8 +303,11 @@ const Animation::Track<Float, Vector2> jump{{ |
|
|
|
|
|
|
|
|
|
|
|
Vector2 position = jump.at(2.2f); // y = 0.775
|
|
|
|
Vector2 position = jump.at(2.2f); // y = 0.775
|
|
|
|
/* [Track-usage] */ |
|
|
|
/* [Track-usage] */ |
|
|
|
|
|
|
|
static_cast<void>(position); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
const Animation::Track<Float, Vector2> jump; |
|
|
|
/* [Track-performance-hint] */ |
|
|
|
/* [Track-performance-hint] */ |
|
|
|
std::size_t hint = 0; |
|
|
|
std::size_t hint = 0; |
|
|
|
Vector2 position = jump.at(2.2f, hint); // y = 0.775, hint = 2
|
|
|
|
Vector2 position = jump.at(2.2f, hint); // y = 0.775, hint = 2
|
|
|
|
@ -313,6 +316,7 @@ static_cast<void>(position); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
const Animation::Track<Float, Vector2> jump; |
|
|
|
/* [Track-performance-strict] */ |
|
|
|
/* [Track-performance-strict] */ |
|
|
|
std::size_t hint = 0; |
|
|
|
std::size_t hint = 0; |
|
|
|
Vector2 position = jump.atStrict(2.2f, hint); // y = 0.775, hint = 2
|
|
|
|
Vector2 position = jump.atStrict(2.2f, hint); // y = 0.775, hint = 2
|
|
|
|
@ -320,9 +324,6 @@ Vector2 position = jump.atStrict(2.2f, hint); // y = 0.775, hint = 2 |
|
|
|
static_cast<void>(position); |
|
|
|
static_cast<void>(position); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static_cast<void>(position); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
/* [Track-performance-cache] */ |
|
|
|
/* [Track-performance-cache] */ |
|
|
|
struct Keyframe { |
|
|
|
struct Keyframe { |
|
|
|
|