今奥全景相机
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.

72 lines
1.7 KiB

.class public Lcom/facebook/rebound/SpringConfig;
.super Ljava/lang/Object;
.source "SpringConfig.java"
# static fields
.field public static defaultConfig:Lcom/facebook/rebound/SpringConfig;
# instance fields
.field public friction:D
.field public tension:D
# direct methods
.method static constructor <clinit>()V
.locals 4
.prologue
.line 20
const-wide/high16 v0, 0x4044000000000000L # 40.0
const-wide/high16 v2, 0x401c000000000000L # 7.0
invoke-static {v0, v1, v2, v3}, Lcom/facebook/rebound/SpringConfig;->fromOrigamiTensionAndFriction(DD)Lcom/facebook/rebound/SpringConfig;
move-result-object v0
sput-object v0, Lcom/facebook/rebound/SpringConfig;->defaultConfig:Lcom/facebook/rebound/SpringConfig;
return-void
.end method
.method public constructor <init>(DD)V
.locals 1
.prologue
.line 27
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 28
iput-wide p1, p0, Lcom/facebook/rebound/SpringConfig;->tension:D
.line 29
iput-wide p3, p0, Lcom/facebook/rebound/SpringConfig;->friction:D
.line 30
return-void
.end method
.method public static fromOrigamiTensionAndFriction(DD)Lcom/facebook/rebound/SpringConfig;
.locals 6
.prologue
.line 39
new-instance v0, Lcom/facebook/rebound/SpringConfig;
.line 40
invoke-static {p0, p1}, Lcom/facebook/rebound/OrigamiValueConverter;->tensionFromOrigamiValue(D)D
move-result-wide v2
.line 41
invoke-static {p2, p3}, Lcom/facebook/rebound/OrigamiValueConverter;->frictionFromOrigamiValue(D)D
move-result-wide v4
invoke-direct {v0, v2, v3, v4, v5}, Lcom/facebook/rebound/SpringConfig;-><init>(DD)V
return-object v0
.end method