package X6FRs_4.JZJr_16;

import android.graphics.Path;
import android.graphics.PathMeasure;
import android.graphics.PointF;
import android.util.Property;
/* compiled from: PathProperty.java */
/* loaded from: classes.dex */
public class KNBe_11<T> extends Property<T, Float> {
    public final float KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final PathMeasure f574KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final PointF f575KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final Property<T, PointF> f576KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final float[] f577KQgRr5e_0;
    public float QxJ9d_1;

    public KNBe_11(Property<T, PointF> property, Path path) {
        super(Float.class, property.getName());
        this.f577KQgRr5e_0 = new float[2];
        this.f575KQgRr5e_0 = new PointF();
        this.f576KQgRr5e_0 = property;
        PathMeasure pathMeasure = new PathMeasure(path, false);
        this.f574KQgRr5e_0 = pathMeasure;
        this.KQgRr5e_0 = pathMeasure.getLength();
    }

    @Override // android.util.Property
    /* renamed from: KQgRr5e_0 */
    public Float get(T t) {
        return Float.valueOf(this.QxJ9d_1);
    }

    @Override // android.util.Property
    /* renamed from: KQgRr5e_0 */
    public void set(T t, Float f) {
        this.QxJ9d_1 = f.floatValue();
        this.f574KQgRr5e_0.getPosTan(this.KQgRr5e_0 * f.floatValue(), this.f577KQgRr5e_0, null);
        PointF pointF = this.f575KQgRr5e_0;
        float[] fArr = this.f577KQgRr5e_0;
        pointF.x = fArr[0];
        pointF.y = fArr[1];
        this.f576KQgRr5e_0.set(t, pointF);
    }
}
