blob: 83b9fc64a6abdef5e6839dbf51a820e5a0e4b0f6 [file] [log] [blame]
package com.airbnb.lottie;
class ScaleXY {
private float scaleX = 1f;
private float scaleY = 1f;
ScaleXY scale(float sx, float sy) {
this.scaleX = sx;
this.scaleY = sy;
return this;
}
float getScaleX() {
return scaleX;
}
float getScaleY() {
return scaleY;
}
boolean isDefault() {
return scaleX == 1f && scaleY == 1f;
}
@Override public String toString() {
return getScaleX() + "x" + getScaleY();
}
}