package c.n;

import android.graphics.Path;
import android.graphics.PathMeasure;
import android.graphics.PointF;
import android.util.Property;

/* JADX INFO: compiled from: PathProperty.java */
/* JADX INFO: loaded from: classes.dex */
class h<T> extends Property<T, Float> {
    private final Property<T, PointF> a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private final PathMeasure f1570b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    private final float f1571c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    private final float[] f1572d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    private final PointF f1573e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    private float f1574f;

    h(Property<T, PointF> property, Path path) {
        super(Float.class, property.getName());
        this.f1572d = new float[2];
        this.f1573e = new PointF();
        this.a = property;
        PathMeasure pathMeasure = new PathMeasure(path, false);
        this.f1570b = pathMeasure;
        this.f1571c = pathMeasure.getLength();
    }

    @Override // android.util.Property
    /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
    public Float get(T t) {
        return Float.valueOf(this.f1574f);
    }

    @Override // android.util.Property
    /* JADX INFO: renamed from: b, reason: merged with bridge method [inline-methods] */
    public void set(T t, Float f2) {
        this.f1574f = f2.floatValue();
        this.f1570b.getPosTan(this.f1571c * f2.floatValue(), this.f1572d, null);
        PointF pointF = this.f1573e;
        float[] fArr = this.f1572d;
        pointF.x = fArr[0];
        pointF.y = fArr[1];
        this.a.set(t, pointF);
    }
}
