discord-jadx/app/src/main/java/c/c/a/c0/a.java

114 lines
2.7 KiB
Java

package c.c.a.c0;
import android.graphics.PointF;
import android.view.animation.Interpolator;
import androidx.annotation.FloatRange;
import androidx.annotation.Nullable;
import c.c.a.d;
/* compiled from: Keyframe */
public class a<T> {
@Nullable
public final d a;
@Nullable
public final T b;
@Nullable
/* renamed from: c reason: collision with root package name */
public T f259c;
@Nullable
public final Interpolator d;
public final float e;
@Nullable
public Float f;
public float g;
public float h;
public int i;
public int j;
public float k;
public float l;
public PointF m;
public PointF n;
public a(d dVar, @Nullable T t, @Nullable T t2, @Nullable Interpolator interpolator, float f, @Nullable Float f2) {
this.g = -3987645.8f;
this.h = -3987645.8f;
this.i = 784923401;
this.j = 784923401;
this.k = Float.MIN_VALUE;
this.l = Float.MIN_VALUE;
this.m = null;
this.n = null;
this.a = dVar;
this.b = t;
this.f259c = t2;
this.d = interpolator;
this.e = f;
this.f = f2;
}
public a(T t) {
this.g = -3987645.8f;
this.h = -3987645.8f;
this.i = 784923401;
this.j = 784923401;
this.k = Float.MIN_VALUE;
this.l = Float.MIN_VALUE;
this.m = null;
this.n = null;
this.a = null;
this.b = t;
this.f259c = t;
this.d = null;
this.e = Float.MIN_VALUE;
this.f = Float.valueOf(Float.MAX_VALUE);
}
public boolean a(@FloatRange(from = 0.0d, to = 1.0d) float f) {
return f >= c() && f < b();
}
public float b() {
if (this.a == null) {
return 1.0f;
}
if (this.l == Float.MIN_VALUE) {
if (this.f == null) {
this.l = 1.0f;
} else {
this.l = ((this.f.floatValue() - this.e) / this.a.c()) + c();
}
}
return this.l;
}
public float c() {
d dVar = this.a;
if (dVar == null) {
return 0.0f;
}
if (this.k == Float.MIN_VALUE) {
this.k = (this.e - dVar.k) / dVar.c();
}
return this.k;
}
public boolean d() {
return this.d == null;
}
public String toString() {
StringBuilder K = c.d.b.a.a.K("Keyframe{startValue=");
K.append((Object) this.b);
K.append(", endValue=");
K.append((Object) this.f259c);
K.append(", startFrame=");
K.append(this.e);
K.append(", endFrame=");
K.append(this.f);
K.append(", interpolator=");
K.append(this.d);
K.append('}');
return K.toString();
}
}