Select to view content in your preferred language

Actual Values of the AnimationCurve

423
4
Jump to solution
12-13-2024 02:27 AM
dev4567
Emerging Contributor

What are the exact curve values of the AnimationCurve objects? We want our compose animation to match the viewpoint animation, so we have to know the curve values.

0 Kudos
1 Solution

Accepted Solutions
MikeWilburn
Esri Contributor

I can't promise they will be exactly the same, though they should be awfully close. From what I'm seeing, the math functions used to determine the curves should match, though there might be subtle differences in the animation durations. 

View solution in original post

4 Replies
MikeWilburn
Esri Contributor

Have a look at https://easings.net/ which is mentioned in the API reference of AnimationCurve.
That open-source site describes the math behind each of the available easing functions and can be used to determine curve values.

0 Kudos
dev4567
Emerging Contributor

Yeap, currently I use exactly this site to mimic the behaviour – could you please confirm the arcgis sdk uses the exact same values for the same-named easings?

0 Kudos
MikeWilburn
Esri Contributor

I can't promise they will be exactly the same, though they should be awfully close. From what I'm seeing, the math functions used to determine the curves should match, though there might be subtle differences in the animation durations. 

dev4567
Emerging Contributor

thank you for checking

0 Kudos