You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
1.1 KiB
70 lines
1.1 KiB
.class public Lcom/facebook/rebound/SpringUtil; |
|
.super Ljava/lang/Object; |
|
.source "SpringUtil.java" |
|
|
|
|
|
# direct methods |
|
.method public constructor <init>()V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 13 |
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
.method public static clamp(DDD)D |
|
.locals 2 |
|
|
|
.prologue |
|
.line 44 |
|
invoke-static {p0, p1, p2, p3}, Ljava/lang/Math;->max(DD)D |
|
|
|
move-result-wide v0 |
|
|
|
invoke-static {v0, v1, p4, p5}, Ljava/lang/Math;->min(DD)D |
|
|
|
move-result-wide v0 |
|
|
|
return-wide v0 |
|
.end method |
|
|
|
.method public static clamp(III)I |
|
.locals 1 |
|
|
|
.prologue |
|
.line 48 |
|
invoke-static {p0, p1}, Ljava/lang/Math;->max(II)I |
|
|
|
move-result v0 |
|
|
|
invoke-static {v0, p2}, Ljava/lang/Math;->min(II)I |
|
|
|
move-result v0 |
|
|
|
return v0 |
|
.end method |
|
|
|
.method public static mapValueFromRangeToRange(DDDDD)D |
|
.locals 6 |
|
|
|
.prologue |
|
.line 30 |
|
sub-double v0, p4, p2 |
|
|
|
.line 31 |
|
sub-double v2, p8, p6 |
|
|
|
.line 32 |
|
sub-double v4, p0, p2 |
|
|
|
div-double v0, v4, v0 |
|
|
|
.line 33 |
|
mul-double/2addr v0, v2 |
|
|
|
add-double/2addr v0, p6 |
|
|
|
return-wide v0 |
|
.end method
|
|
|