mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-12-05 11:59:30 +01:00
39 lines
2.7 KiB
Java
39 lines
2.7 KiB
Java
package androidx.graphics.shapes;
|
|
|
|
import com.facebook.react.uimanager.ViewProps;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0010\u0007\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u001e\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00012\u0006\u0010\u0006\u001a\u00020\u00012\u0006\u0010\u0007\u001a\u00020\bJ\u000e\u0010\t\u001a\u00020\u00042\u0006\u0010\n\u001a\u00020\u000bJ\u0018\u0010\f\u001a\u00020\u00042\u0006\u0010\n\u001a\u00020\u000b2\u0006\u0010\r\u001a\u00020\u000eH\u0002¨\u0006\u000f"}, d2 = {"Landroidx/graphics/shapes/MutableCubic;", "Landroidx/graphics/shapes/Cubic;", "()V", "interpolate", "", "c1", "c2", "progress", "", ViewProps.TRANSFORM, "f", "Landroidx/graphics/shapes/PointTransformer;", "transformOnePoint", "ix", "", "graphics-shapes_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
@SourceDebugExtension({"SMAP\nCubic.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Cubic.kt\nandroidx/graphics/shapes/MutableCubic\n+ 2 FloatFloatPair.kt\nandroidx/collection/FloatFloatPair\n+ 3 PackingHelpers.jvm.kt\nandroidx/collection/internal/PackingHelpers_jvmKt\n+ 4 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,448:1\n48#2:449\n54#2:451\n22#3:450\n22#3:452\n1#4:453\n*S KotlinDebug\n*F\n+ 1 Cubic.kt\nandroidx/graphics/shapes/MutableCubic\n*L\n433#1:449\n434#1:451\n433#1:450\n434#1:452\n*E\n"})
|
|
/* loaded from: classes14.dex */
|
|
public final class MutableCubic extends Cubic {
|
|
public MutableCubic() {
|
|
super(null, 1, null);
|
|
}
|
|
|
|
private final void transformOnePoint(PointTransformer f, int ix) {
|
|
int i = ix + 1;
|
|
long mo7755transformXgqJiTY = f.mo7755transformXgqJiTY(getPoints()[ix], getPoints()[i]);
|
|
getPoints()[ix] = Float.intBitsToFloat((int) (mo7755transformXgqJiTY >> 32));
|
|
getPoints()[i] = Float.intBitsToFloat((int) (4294967295L & mo7755transformXgqJiTY));
|
|
}
|
|
|
|
public final void interpolate(@NotNull Cubic c1, @NotNull Cubic c2, float progress) {
|
|
c1.getClass();
|
|
c2.getClass();
|
|
for (int i = 0; i < 8; i++) {
|
|
getPoints()[i] = Utils.interpolate(c1.getPoints()[i], c2.getPoints()[i], progress);
|
|
}
|
|
}
|
|
|
|
public final void transform(@NotNull PointTransformer f) {
|
|
f.getClass();
|
|
transformOnePoint(f, 0);
|
|
transformOnePoint(f, 2);
|
|
transformOnePoint(f, 4);
|
|
transformOnePoint(f, 6);
|
|
}
|
|
}
|