Do not deduplicate . The intention of duplicate keys is to allow for a jump from one end value to a start value. The simplest implementation is to replace duplicates with a minimally larger number, eg.
0, 0.5, 0.5,1
0, 0.5, 0.5000001, 1
Check if there is a THREE.epsilon .
This avoids additional checking in the easing function which is called a lot.
Do not deduplicate . The intention of duplicate keys is to allow for a jump from one end value to a start value. The simplest implementation is to replace duplicates with a minimally larger number, eg.
0, 0.5, 0.5,1 0, 0.5, 0.5000001, 1
Check if there is a THREE.epsilon .
This avoids additional checking in the easing function which is called a lot.