mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-18 20:07:19 +01:00
31 lines
960 B
Java
31 lines
960 B
Java
package androidx.transition;
|
|
|
|
import android.animation.TypeEvaluator;
|
|
import android.graphics.Rect;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes14.dex */
|
|
class RectEvaluator implements TypeEvaluator<Rect> {
|
|
private Rect mRect;
|
|
|
|
public RectEvaluator(Rect rect) {
|
|
this.mRect = rect;
|
|
}
|
|
|
|
@Override // android.animation.TypeEvaluator
|
|
public Rect evaluate(float f, Rect rect, Rect rect2) {
|
|
int i = rect.left + ((int) ((rect2.left - r0) * f));
|
|
int i2 = rect.top + ((int) ((rect2.top - r1) * f));
|
|
int i3 = rect.right + ((int) ((rect2.right - r2) * f));
|
|
int i4 = rect.bottom + ((int) ((rect2.bottom - r6) * f));
|
|
Rect rect3 = this.mRect;
|
|
if (rect3 == null) {
|
|
return new Rect(i, i2, i3, i4);
|
|
}
|
|
rect3.set(i, i2, i3, i4);
|
|
return this.mRect;
|
|
}
|
|
|
|
public RectEvaluator() {
|
|
}
|
|
}
|