discord-jadx/app/src/main/java/androidx/core/graphics/PointKt.java

110 lines
3.4 KiB
Java
Raw Normal View History

2021-07-24 02:37:17 +00:00
package androidx.core.graphics;
import android.graphics.Point;
import android.graphics.PointF;
import d0.z.d.m;
/* compiled from: Point.kt */
public final class PointKt {
public static final float component1(PointF pointF) {
2021-09-21 07:33:49 +00:00
m.checkNotNullParameter(pointF, "<this>");
2021-07-24 02:37:17 +00:00
return pointF.x;
}
public static final int component1(Point point) {
2021-09-21 07:33:49 +00:00
m.checkNotNullParameter(point, "<this>");
2021-07-24 02:37:17 +00:00
return point.x;
}
public static final float component2(PointF pointF) {
2021-09-21 07:33:49 +00:00
m.checkNotNullParameter(pointF, "<this>");
2021-07-24 02:37:17 +00:00
return pointF.y;
}
public static final int component2(Point point) {
2021-09-21 07:33:49 +00:00
m.checkNotNullParameter(point, "<this>");
2021-07-24 02:37:17 +00:00
return point.y;
}
public static final Point minus(Point point, int i) {
2021-09-21 07:33:49 +00:00
m.checkNotNullParameter(point, "<this>");
2021-07-24 02:37:17 +00:00
Point point2 = new Point(point.x, point.y);
int i2 = -i;
point2.offset(i2, i2);
return point2;
}
public static final Point minus(Point point, Point point2) {
2021-09-21 07:33:49 +00:00
m.checkNotNullParameter(point, "<this>");
m.checkNotNullParameter(point2, "p");
2021-07-24 02:37:17 +00:00
Point point3 = new Point(point.x, point.y);
point3.offset(-point2.x, -point2.y);
return point3;
}
public static final PointF minus(PointF pointF, float f) {
2021-09-21 07:33:49 +00:00
m.checkNotNullParameter(pointF, "<this>");
2021-07-24 02:37:17 +00:00
PointF pointF2 = new PointF(pointF.x, pointF.y);
float f2 = -f;
pointF2.offset(f2, f2);
return pointF2;
}
public static final PointF minus(PointF pointF, PointF pointF2) {
2021-09-21 07:33:49 +00:00
m.checkNotNullParameter(pointF, "<this>");
m.checkNotNullParameter(pointF2, "p");
2021-07-24 02:37:17 +00:00
PointF pointF3 = new PointF(pointF.x, pointF.y);
pointF3.offset(-pointF2.x, -pointF2.y);
return pointF3;
}
public static final Point plus(Point point, int i) {
2021-09-21 07:33:49 +00:00
m.checkNotNullParameter(point, "<this>");
2021-07-24 02:37:17 +00:00
Point point2 = new Point(point.x, point.y);
point2.offset(i, i);
return point2;
}
public static final Point plus(Point point, Point point2) {
2021-09-21 07:33:49 +00:00
m.checkNotNullParameter(point, "<this>");
m.checkNotNullParameter(point2, "p");
2021-07-24 02:37:17 +00:00
Point point3 = new Point(point.x, point.y);
point3.offset(point2.x, point2.y);
return point3;
}
public static final PointF plus(PointF pointF, float f) {
2021-09-21 07:33:49 +00:00
m.checkNotNullParameter(pointF, "<this>");
2021-07-24 02:37:17 +00:00
PointF pointF2 = new PointF(pointF.x, pointF.y);
pointF2.offset(f, f);
return pointF2;
}
public static final PointF plus(PointF pointF, PointF pointF2) {
2021-09-21 07:33:49 +00:00
m.checkNotNullParameter(pointF, "<this>");
m.checkNotNullParameter(pointF2, "p");
2021-07-24 02:37:17 +00:00
PointF pointF3 = new PointF(pointF.x, pointF.y);
pointF3.offset(pointF2.x, pointF2.y);
return pointF3;
}
public static final Point toPoint(PointF pointF) {
2021-09-21 07:33:49 +00:00
m.checkNotNullParameter(pointF, "<this>");
2021-07-24 02:37:17 +00:00
return new Point((int) pointF.x, (int) pointF.y);
}
public static final PointF toPointF(Point point) {
2021-09-21 07:33:49 +00:00
m.checkNotNullParameter(point, "<this>");
2021-07-24 02:37:17 +00:00
return new PointF(point);
}
public static final Point unaryMinus(Point point) {
2021-09-21 07:33:49 +00:00
m.checkNotNullParameter(point, "<this>");
2021-07-24 02:37:17 +00:00
return new Point(-point.x, -point.y);
}
public static final PointF unaryMinus(PointF pointF) {
2021-09-21 07:33:49 +00:00
m.checkNotNullParameter(pointF, "<this>");
2021-07-24 02:37:17 +00:00
return new PointF(-pointF.x, -pointF.y);
}
}