mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
191 lines
5.3 KiB
Smali
191 lines
5.3 KiB
Smali
.class public Lcom/airbnb/lottie/value/LottieRelativePointValueCallback;
|
|
.super Lcom/airbnb/lottie/value/LottieValueCallback;
|
|
.source "LottieRelativePointValueCallback.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/airbnb/lottie/value/LottieValueCallback<",
|
|
"Landroid/graphics/PointF;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final point:Landroid/graphics/PointF;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 17
|
|
invoke-direct {p0}, Lcom/airbnb/lottie/value/LottieValueCallback;-><init>()V
|
|
|
|
.line 15
|
|
new-instance v0, Landroid/graphics/PointF;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/PointF;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/airbnb/lottie/value/LottieRelativePointValueCallback;->point:Landroid/graphics/PointF;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/graphics/PointF;)V
|
|
.locals 0
|
|
|
|
.line 21
|
|
invoke-direct {p0, p1}, Lcom/airbnb/lottie/value/LottieValueCallback;-><init>(Ljava/lang/Object;)V
|
|
|
|
.line 15
|
|
new-instance p1, Landroid/graphics/PointF;
|
|
|
|
invoke-direct {p1}, Landroid/graphics/PointF;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/airbnb/lottie/value/LottieRelativePointValueCallback;->point:Landroid/graphics/PointF;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getOffset(Lcom/airbnb/lottie/value/LottieFrameInfo;)Landroid/graphics/PointF;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/airbnb/lottie/value/LottieFrameInfo<",
|
|
"Landroid/graphics/PointF;",
|
|
">;)",
|
|
"Landroid/graphics/PointF;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 46
|
|
iget-object p1, p0, Lcom/airbnb/lottie/value/LottieRelativePointValueCallback;->value:Ljava/lang/Object;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 50
|
|
iget-object p0, p0, Lcom/airbnb/lottie/value/LottieRelativePointValueCallback;->value:Ljava/lang/Object;
|
|
|
|
check-cast p0, Landroid/graphics/PointF;
|
|
|
|
return-object p0
|
|
|
|
.line 47
|
|
:cond_0
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p1, "You must provide a static value in the constructor , call setValue, or override getValue."
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public final getValue(Lcom/airbnb/lottie/value/LottieFrameInfo;)Landroid/graphics/PointF;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/airbnb/lottie/value/LottieFrameInfo<",
|
|
"Landroid/graphics/PointF;",
|
|
">;)",
|
|
"Landroid/graphics/PointF;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/value/LottieRelativePointValueCallback;->point:Landroid/graphics/PointF;
|
|
|
|
.line 28
|
|
invoke-virtual {p1}, Lcom/airbnb/lottie/value/LottieFrameInfo;->getStartValue()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/graphics/PointF;
|
|
|
|
iget v1, v1, Landroid/graphics/PointF;->x:F
|
|
|
|
.line 29
|
|
invoke-virtual {p1}, Lcom/airbnb/lottie/value/LottieFrameInfo;->getEndValue()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/graphics/PointF;
|
|
|
|
iget v2, v2, Landroid/graphics/PointF;->x:F
|
|
|
|
.line 30
|
|
invoke-virtual {p1}, Lcom/airbnb/lottie/value/LottieFrameInfo;->getInterpolatedKeyframeProgress()F
|
|
|
|
move-result v3
|
|
|
|
.line 27
|
|
invoke-static {v1, v2, v3}, Lcom/airbnb/lottie/utils/MiscUtils;->lerp(FFF)F
|
|
|
|
move-result v1
|
|
|
|
.line 32
|
|
invoke-virtual {p1}, Lcom/airbnb/lottie/value/LottieFrameInfo;->getStartValue()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/graphics/PointF;
|
|
|
|
iget v2, v2, Landroid/graphics/PointF;->y:F
|
|
|
|
.line 33
|
|
invoke-virtual {p1}, Lcom/airbnb/lottie/value/LottieFrameInfo;->getEndValue()Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Landroid/graphics/PointF;
|
|
|
|
iget v3, v3, Landroid/graphics/PointF;->y:F
|
|
|
|
.line 34
|
|
invoke-virtual {p1}, Lcom/airbnb/lottie/value/LottieFrameInfo;->getInterpolatedKeyframeProgress()F
|
|
|
|
move-result v4
|
|
|
|
.line 31
|
|
invoke-static {v2, v3, v4}, Lcom/airbnb/lottie/utils/MiscUtils;->lerp(FFF)F
|
|
|
|
move-result v2
|
|
|
|
.line 26
|
|
invoke-virtual {v0, v1, v2}, Landroid/graphics/PointF;->set(FF)V
|
|
|
|
.line 37
|
|
invoke-virtual {p0, p1}, Lcom/airbnb/lottie/value/LottieRelativePointValueCallback;->getOffset(Lcom/airbnb/lottie/value/LottieFrameInfo;)Landroid/graphics/PointF;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/value/LottieRelativePointValueCallback;->point:Landroid/graphics/PointF;
|
|
|
|
.line 38
|
|
iget v1, p1, Landroid/graphics/PointF;->x:F
|
|
|
|
iget p1, p1, Landroid/graphics/PointF;->y:F
|
|
|
|
invoke-virtual {v0, v1, p1}, Landroid/graphics/PointF;->offset(FF)V
|
|
|
|
iget-object p0, p0, Lcom/airbnb/lottie/value/LottieRelativePointValueCallback;->point:Landroid/graphics/PointF;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public bridge synthetic getValue(Lcom/airbnb/lottie/value/LottieFrameInfo;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 13
|
|
invoke-virtual {p0, p1}, Lcom/airbnb/lottie/value/LottieRelativePointValueCallback;->getValue(Lcom/airbnb/lottie/value/LottieFrameInfo;)Landroid/graphics/PointF;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|