352 lines
6.8 KiB
Smali
352 lines
6.8 KiB
Smali
.class public Lcom/badlogic/gdx/math/Interpolation$BounceOut;
|
|
.super Lcom/badlogic/gdx/math/Interpolation;
|
|
.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 = "BounceOut"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final Q:[F
|
|
|
|
.field final R:[F
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(I)V
|
|
.locals 9
|
|
|
|
.line 316
|
|
invoke-direct {p0}, Lcom/badlogic/gdx/math/Interpolation;-><init>()V
|
|
|
|
const/4 v0, 0x2
|
|
|
|
if-lt p1, v0, :cond_0
|
|
|
|
const/4 v1, 0x5
|
|
|
|
if-gt p1, v1, :cond_0
|
|
|
|
.line 318
|
|
new-array v1, p1, [F
|
|
|
|
iput-object v1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->Q:[F
|
|
|
|
.line 319
|
|
new-array v1, p1, [F
|
|
|
|
iput-object v1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->R:[F
|
|
|
|
.line 320
|
|
iget-object v1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->R:[F
|
|
|
|
const/high16 v2, 0x3f800000 # 1.0f
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aput v2, v1, v3
|
|
|
|
const v1, 0x3e19999a # 0.15f
|
|
|
|
const v2, 0x3ea8f5c3 # 0.33f
|
|
|
|
const v4, 0x3dcccccd # 0.1f
|
|
|
|
const v5, 0x3e4ccccd # 0.2f
|
|
|
|
const v6, 0x3ecccccd # 0.4f
|
|
|
|
const/4 v7, 0x3
|
|
|
|
const/4 v8, 0x1
|
|
|
|
packed-switch p1, :pswitch_data_0
|
|
|
|
goto/16 :goto_0
|
|
|
|
.line 344
|
|
:pswitch_0
|
|
iget-object p1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->Q:[F
|
|
|
|
const v2, 0x3e99999a # 0.3f
|
|
|
|
aput v2, p1, v3
|
|
|
|
.line 345
|
|
iget-object p1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->Q:[F
|
|
|
|
aput v2, p1, v8
|
|
|
|
.line 346
|
|
iget-object p1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->Q:[F
|
|
|
|
aput v5, p1, v0
|
|
|
|
.line 347
|
|
iget-object p1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->Q:[F
|
|
|
|
aput v4, p1, v7
|
|
|
|
.line 348
|
|
iget-object p1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->Q:[F
|
|
|
|
const/4 v5, 0x4
|
|
|
|
aput v4, p1, v5
|
|
|
|
.line 349
|
|
iget-object p1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->R:[F
|
|
|
|
const v4, 0x3ee66666 # 0.45f
|
|
|
|
aput v4, p1, v8
|
|
|
|
.line 350
|
|
iget-object p1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->R:[F
|
|
|
|
aput v2, p1, v0
|
|
|
|
.line 351
|
|
iget-object p1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->R:[F
|
|
|
|
aput v1, p1, v7
|
|
|
|
.line 352
|
|
iget-object p1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->R:[F
|
|
|
|
const v0, 0x3d75c28f # 0.06f
|
|
|
|
aput v0, p1, v5
|
|
|
|
goto :goto_0
|
|
|
|
.line 335
|
|
:pswitch_1
|
|
iget-object p1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->Q:[F
|
|
|
|
const v2, 0x3eae147b # 0.34f
|
|
|
|
aput v2, p1, v3
|
|
|
|
.line 336
|
|
iget-object p1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->Q:[F
|
|
|
|
aput v2, p1, v8
|
|
|
|
.line 337
|
|
iget-object p1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->Q:[F
|
|
|
|
aput v5, p1, v0
|
|
|
|
.line 338
|
|
iget-object p1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->Q:[F
|
|
|
|
aput v1, p1, v7
|
|
|
|
.line 339
|
|
iget-object p1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->R:[F
|
|
|
|
const v1, 0x3e851eb8 # 0.26f
|
|
|
|
aput v1, p1, v8
|
|
|
|
.line 340
|
|
iget-object p1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->R:[F
|
|
|
|
const v1, 0x3de147ae # 0.11f
|
|
|
|
aput v1, p1, v0
|
|
|
|
.line 341
|
|
iget-object p1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->R:[F
|
|
|
|
const v0, 0x3cf5c28f # 0.03f
|
|
|
|
aput v0, p1, v7
|
|
|
|
goto :goto_0
|
|
|
|
.line 328
|
|
:pswitch_2
|
|
iget-object p1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->Q:[F
|
|
|
|
aput v6, p1, v3
|
|
|
|
.line 329
|
|
iget-object p1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->Q:[F
|
|
|
|
aput v6, p1, v8
|
|
|
|
.line 330
|
|
iget-object p1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->Q:[F
|
|
|
|
aput v5, p1, v0
|
|
|
|
.line 331
|
|
iget-object p1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->R:[F
|
|
|
|
aput v2, p1, v8
|
|
|
|
.line 332
|
|
iget-object p1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->R:[F
|
|
|
|
aput v4, p1, v0
|
|
|
|
goto :goto_0
|
|
|
|
.line 323
|
|
:pswitch_3
|
|
iget-object p1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->Q:[F
|
|
|
|
const v0, 0x3f19999a # 0.6f
|
|
|
|
aput v0, p1, v3
|
|
|
|
.line 324
|
|
iget-object p1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->Q:[F
|
|
|
|
aput v6, p1, v8
|
|
|
|
.line 325
|
|
iget-object p1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->R:[F
|
|
|
|
aput v2, p1, v8
|
|
|
|
.line 355
|
|
:goto_0
|
|
iget-object p1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->Q:[F
|
|
|
|
aget v0, p1, v3
|
|
|
|
const/high16 v1, 0x40000000 # 2.0f
|
|
|
|
mul-float v0, v0, v1
|
|
|
|
aput v0, p1, v3
|
|
|
|
return-void
|
|
|
|
.line 317
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "bounces cannot be < 2 or > 5: "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x2
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(F)F
|
|
.locals 6
|
|
|
|
const/high16 v0, 0x3f800000 # 1.0f
|
|
|
|
cmpl-float v1, p1, v0
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
return v0
|
|
|
|
.line 360
|
|
:cond_0
|
|
iget-object v1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->Q:[F
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aget v1, v1, v2
|
|
|
|
const/high16 v3, 0x40000000 # 2.0f
|
|
|
|
div-float/2addr v1, v3
|
|
|
|
add-float/2addr p1, v1
|
|
|
|
.line 362
|
|
iget-object v1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->Q:[F
|
|
|
|
array-length v1, v1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, v1, :cond_2
|
|
|
|
.line 363
|
|
iget-object v4, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->Q:[F
|
|
|
|
aget v4, v4, v2
|
|
|
|
cmpg-float v5, p1, v4
|
|
|
|
if-gtz v5, :cond_1
|
|
|
|
.line 365
|
|
iget-object v1, p0, Lcom/badlogic/gdx/math/Interpolation$BounceOut;->R:[F
|
|
|
|
aget v3, v1, v2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
sub-float/2addr p1, v4
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
:goto_1
|
|
div-float/2addr p1, v4
|
|
|
|
const/high16 v1, 0x40800000 # 4.0f
|
|
|
|
div-float/2addr v1, v4
|
|
|
|
mul-float v1, v1, v3
|
|
|
|
mul-float v1, v1, p1
|
|
|
|
mul-float p1, p1, v1
|
|
|
|
sub-float/2addr v1, p1
|
|
|
|
mul-float v1, v1, v4
|
|
|
|
sub-float/2addr v0, v1
|
|
|
|
return v0
|
|
.end method
|