Weather/smali/com/badlogic/gdx/math/Interpolation$ElasticIn.smali
2021-05-10 10:13:34 +02:00

80 lines
1.5 KiB
Smali

.class public Lcom/badlogic/gdx/math/Interpolation$ElasticIn;
.super Lcom/badlogic/gdx/math/Interpolation$Elastic;
.source "Interpolation.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/badlogic/gdx/math/Interpolation;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "ElasticIn"
.end annotation
# direct methods
.method public constructor <init>(FFIF)V
.locals 0
.line 262
invoke-direct {p0, p1, p2, p3, p4}, Lcom/badlogic/gdx/math/Interpolation$Elastic;-><init>(FFIF)V
return-void
.end method
# virtual methods
.method public a(F)F
.locals 6
float-to-double v0, p1
const/high16 v2, 0x3f800000 # 1.0f
const-wide v3, 0x3fefae147ae147aeL # 0.99
cmpl-double v5, v0, v3
if-ltz v5, :cond_0
return v2
.line 267
:cond_0
iget v0, p0, Lcom/badlogic/gdx/math/Interpolation$ElasticIn;->Q:F
float-to-double v0, v0
iget v3, p0, Lcom/badlogic/gdx/math/Interpolation$ElasticIn;->R:F
sub-float v2, p1, v2
mul-float v3, v3, v2
float-to-double v2, v3
invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->pow(DD)D
move-result-wide v0
double-to-float v0, v0
iget v1, p0, Lcom/badlogic/gdx/math/Interpolation$ElasticIn;->T:F
mul-float p1, p1, v1
invoke-static {p1}, Lcom/badlogic/gdx/math/MathUtils;->a(F)F
move-result p1
mul-float v0, v0, p1
iget p1, p0, Lcom/badlogic/gdx/math/Interpolation$ElasticIn;->S:F
mul-float v0, v0, p1
return v0
.end method