Rabbit-R1/android (non root)/java/sources/com/davemorrissey/labs/subscaleview/ImageViewState.java

32 lines
746 B
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
package com.davemorrissey.labs.subscaleview;
import android.graphics.PointF;
import java.io.Serializable;
/* loaded from: classes2.dex */
public class ImageViewState implements Serializable {
private final float centerX;
private final float centerY;
private final int orientation;
private final float scale;
public int getOrientation() {
return this.orientation;
}
public float getScale() {
return this.scale;
}
public ImageViewState(float f, PointF pointF, int i) {
this.scale = f;
this.centerX = pointF.x;
this.centerY = pointF.y;
this.orientation = i;
}
public PointF getCenter() {
return new PointF(this.centerX, this.centerY);
}
}