mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-25 16:42:30 -06:00
32 lines
1 KiB
Java
32 lines
1 KiB
Java
package androidx.transition;
|
|
|
|
import android.animation.TypeEvaluator;
|
|
import android.graphics.Rect;
|
|
|
|
/* loaded from: classes2.dex */
|
|
class RectEvaluator implements TypeEvaluator<Rect> {
|
|
private Rect mRect;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public RectEvaluator() {
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
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 - rect.left) * f));
|
|
int i2 = rect.top + ((int) ((rect2.top - rect.top) * f));
|
|
int i3 = rect.right + ((int) ((rect2.right - rect.right) * f));
|
|
int i4 = rect.bottom + ((int) ((rect2.bottom - rect.bottom) * f));
|
|
Rect rect3 = this.mRect;
|
|
if (rect3 == null) {
|
|
return new Rect(i, i2, i3, i4);
|
|
}
|
|
rect3.set(i, i2, i3, i4);
|
|
return this.mRect;
|
|
}
|
|
}
|