mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
lottie: Renamed function names with prefix
Fixed naming conflict in short names. issue: #2062
This commit is contained in:
parent
1a28f837a8
commit
ba82ba08a8
1 changed files with 5 additions and 5 deletions
|
@ -40,20 +40,20 @@
|
|||
#define SUBDIVISION_MAX_ITERATIONS 10
|
||||
|
||||
|
||||
static inline float _A(float aA1, float aA2) { return 1.0f - 3.0f * aA2 + 3.0f * aA1; }
|
||||
static inline float _B(float aA1, float aA2) { return 3.0f * aA2 - 6.0f * aA1; }
|
||||
static inline float _C(float aA1) { return 3.0f * aA1; }
|
||||
static inline float _constA(float aA1, float aA2) { return 1.0f - 3.0f * aA2 + 3.0f * aA1; }
|
||||
static inline float _constB(float aA1, float aA2) { return 3.0f * aA2 - 6.0f * aA1; }
|
||||
static inline float _constC(float aA1) { return 3.0f * aA1; }
|
||||
|
||||
|
||||
static inline float _getSlope(float t, float aA1, float aA2)
|
||||
{
|
||||
return 3.0f * _A(aA1, aA2) * t * t + 2.0f * _B(aA1, aA2) * t + _C(aA1);
|
||||
return 3.0f * _constA(aA1, aA2) * t * t + 2.0f * _constB(aA1, aA2) * t + _constC(aA1);
|
||||
}
|
||||
|
||||
|
||||
static inline float _calcBezier(float t, float aA1, float aA2)
|
||||
{
|
||||
return ((_A(aA1, aA2) * t + _B(aA1, aA2)) * t + _C(aA1)) * t;
|
||||
return ((_constA(aA1, aA2) * t + _constB(aA1, aA2)) * t + _constC(aA1)) * t;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue