mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-25 08:32:38 -06:00
43 lines
3.8 KiB
Java
43 lines
3.8 KiB
Java
package androidx.compose.ui.unit;
|
|
|
|
import androidx.compose.ui.geometry.Rect;
|
|
import androidx.compose.ui.util.MathHelpersKt;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.math.MathKt;
|
|
|
|
/* compiled from: IntRect.kt */
|
|
@Metadata(d1 = {"\u0000.\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0006\n\u0002\u0010\u0007\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a%\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0003H\u0007ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\u0005\u0010\u0006\u001a%\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0007\u001a\u00020\u00032\u0006\u0010\b\u001a\u00020\tH\u0007ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\n\u0010\u0006\u001a%\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u000b\u001a\u00020\u00032\u0006\u0010\f\u001a\u00020\rH\u0007ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\u000e\u0010\u000f\u001a \u0010\u0010\u001a\u00020\u00012\u0006\u0010\u0011\u001a\u00020\u00012\u0006\u0010\u0012\u001a\u00020\u00012\u0006\u0010\u0013\u001a\u00020\u0014H\u0007\u001a\f\u0010\u0015\u001a\u00020\u0001*\u00020\u0016H\u0007\u001a\f\u0010\u0017\u001a\u00020\u0016*\u00020\u0001H\u0007\u0082\u0002\u000b\n\u0005\b¡\u001e0\u0001\n\u0002\b\u0019¨\u0006\u0018"}, d2 = {"IntRect", "Landroidx/compose/ui/unit/IntRect;", "topLeft", "Landroidx/compose/ui/unit/IntOffset;", "bottomRight", "IntRect-E1MhUcY", "(JJ)Landroidx/compose/ui/unit/IntRect;", "offset", "size", "Landroidx/compose/ui/unit/IntSize;", "IntRect-VbeCjmY", "center", "radius", "", "IntRect-ar5cAso", "(JI)Landroidx/compose/ui/unit/IntRect;", "lerp", "start", "stop", "fraction", "", "roundToIntRect", "Landroidx/compose/ui/geometry/Rect;", "toRect", "ui-unit_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final class IntRectKt {
|
|
/* renamed from: IntRect-VbeCjmY, reason: not valid java name */
|
|
public static final IntRect m5033IntRectVbeCjmY(long j, long j2) {
|
|
return new IntRect(IntOffset.m5001getXimpl(j), IntOffset.m5002getYimpl(j), IntOffset.m5001getXimpl(j) + IntSize.m5043getWidthimpl(j2), IntOffset.m5002getYimpl(j) + IntSize.m5042getHeightimpl(j2));
|
|
}
|
|
|
|
/* renamed from: IntRect-E1MhUcY, reason: not valid java name */
|
|
public static final IntRect m5032IntRectE1MhUcY(long j, long j2) {
|
|
return new IntRect(IntOffset.m5001getXimpl(j), IntOffset.m5002getYimpl(j), IntOffset.m5001getXimpl(j2), IntOffset.m5002getYimpl(j2));
|
|
}
|
|
|
|
/* renamed from: IntRect-ar5cAso, reason: not valid java name */
|
|
public static final IntRect m5034IntRectar5cAso(long j, int i) {
|
|
return new IntRect(IntOffset.m5001getXimpl(j) - i, IntOffset.m5002getYimpl(j) - i, IntOffset.m5001getXimpl(j) + i, IntOffset.m5002getYimpl(j) + i);
|
|
}
|
|
|
|
public static final IntRect lerp(IntRect start, IntRect stop, float f) {
|
|
Intrinsics.checkNotNullParameter(start, "start");
|
|
Intrinsics.checkNotNullParameter(stop, "stop");
|
|
return new IntRect(MathHelpersKt.lerp(start.getLeft(), stop.getLeft(), f), MathHelpersKt.lerp(start.getTop(), stop.getTop(), f), MathHelpersKt.lerp(start.getRight(), stop.getRight(), f), MathHelpersKt.lerp(start.getBottom(), stop.getBottom(), f));
|
|
}
|
|
|
|
public static final Rect toRect(IntRect intRect) {
|
|
Intrinsics.checkNotNullParameter(intRect, "<this>");
|
|
return new Rect(intRect.getLeft(), intRect.getTop(), intRect.getRight(), intRect.getBottom());
|
|
}
|
|
|
|
public static final IntRect roundToIntRect(Rect rect) {
|
|
Intrinsics.checkNotNullParameter(rect, "<this>");
|
|
return new IntRect(MathKt.roundToInt(rect.getLeft()), MathKt.roundToInt(rect.getTop()), MathKt.roundToInt(rect.getRight()), MathKt.roundToInt(rect.getBottom()));
|
|
}
|
|
}
|