|
Tweeny 4.1.0
A Tweening library for modern C++
|
◆ circularIn
Circular easing based on quarter-circle arc for smooth acceleration. The circularIn easing function accelerates following the curve of a quarter circle, creating smooth, gradual acceleration. The motion follows the equation 1 - sqrt(1 - t²), which traces a circular arc. Characteristics:
This easing is ideal for:
Circular easings strike a balance between the gentle quadratic and the more aggressive cubic curves, making them versatile for many contexts. // Smooth camera pan
auto cameraX = tweeny::from(0.0f)
.to(1000.0f)
.during(90U)
.build();
tweeny_builder< true, FirstValue, RemainingValues... > to(const FirstValue &firstComponent, const RemainingValues &... remainingComponents) & Adds a target keyframe to the tween. Definition tweeny.h:109 tweeny_builder & via(EasingFunctionTypes... easing_functions) Specifies per-component easing functions for the last keyframe segment. Definition tweeny.h:198 constexpr detail::circularInEasing circularIn Circular easing based on quarter-circle arc for smooth acceleration. Definition easing.h:337 tweeny_builder< false, FirstValue, RemainingValues... > from(FirstValue firstComponent, RemainingValues... remainingComponents) Creates a new tween builder starting from the specified value(s). Definition tweeny.h:347
|