Optimize animated position calculations


Animated spatial properties may describe curved motion, but most often
are just linear. Utilize this fact by storing such cases as lines,
instead of degenerate cubic curves, in the internal path object. This
allows simpler computation for the animation.

Also enable caching on the path object, saving much re-computation
during animation.

Change-Id: Iae9402f8f909ee28ef37581b34487e3ffe0d2862
Pick-to: 6.10
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
commit833e1ec4c50cf7b8fbb3c018bdcafb27135e9bd3
parent81e8c85645b413d17531b781a177c7330f40740b
authorEirik Aavitsland <eirik.aavitsland@qt.io>
committerEirik Aavitsland <eirik.aavitsland@qt.io>
commit timeWed, 30 Jul 2025 09:15:11 +0200