893 lines
14 KiB
Smali
893 lines
14 KiB
Smali
.class public Landroidx/constraintlayout/motion/utils/LinearCurveFit;
|
|
.super Landroidx/constraintlayout/motion/utils/CurveFit;
|
|
.source "LinearCurveFit.java"
|
|
|
|
|
|
# static fields
|
|
.field public static final TAG:Ljava/lang/String; = "LinearCurveFit"
|
|
|
|
|
|
# instance fields
|
|
.field public mT:[D
|
|
|
|
.field public mTotalLength:D
|
|
|
|
.field public mY:[[D
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>([D[[D)V
|
|
.locals 13
|
|
|
|
invoke-direct {p0}, Landroidx/constraintlayout/motion/utils/CurveFit;-><init>()V
|
|
|
|
const-wide/high16 v0, 0x7ff8000000000000L # Double.NaN
|
|
|
|
iput-wide v0, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mTotalLength:D
|
|
|
|
array-length v0, p1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
aget-object v1, p2, v0
|
|
|
|
array-length v1, v1
|
|
|
|
iput-object p1, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mT:[D
|
|
|
|
iput-object p2, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mY:[[D
|
|
|
|
const/4 v2, 0x2
|
|
|
|
if-le v1, v2, :cond_2
|
|
|
|
const-wide/16 v1, 0x0
|
|
|
|
move-wide v4, v1
|
|
|
|
move-wide v6, v4
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
array-length v8, p1
|
|
|
|
if-ge v3, v8, :cond_1
|
|
|
|
aget-object v8, p2, v3
|
|
|
|
aget-wide v9, v8, v0
|
|
|
|
aget-object v8, p2, v3
|
|
|
|
aget-wide v11, v8, v0
|
|
|
|
if-lez v3, :cond_0
|
|
|
|
sub-double v4, v9, v4
|
|
|
|
sub-double v6, v11, v6
|
|
|
|
invoke-static {v4, v5, v6, v7}, Ljava/lang/Math;->hypot(DD)D
|
|
|
|
:cond_0
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
move-wide v4, v9
|
|
|
|
move-wide v6, v11
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iput-wide v1, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mTotalLength:D
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method private getLength2D(D)D
|
|
.locals 21
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
iget-wide v1, v0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mTotalLength:D
|
|
|
|
invoke-static {v1, v2}, Ljava/lang/Double;->isNaN(D)Z
|
|
|
|
move-result v1
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
return-wide v2
|
|
|
|
:cond_0
|
|
iget-object v1, v0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mT:[D
|
|
|
|
array-length v4, v1
|
|
|
|
const/4 v5, 0x0
|
|
|
|
aget-wide v6, v1, v5
|
|
|
|
cmpg-double v8, p1, v6
|
|
|
|
if-gtz v8, :cond_1
|
|
|
|
return-wide v2
|
|
|
|
:cond_1
|
|
const/4 v6, 0x1
|
|
|
|
sub-int/2addr v4, v6
|
|
|
|
aget-wide v7, v1, v4
|
|
|
|
cmpl-double v1, p1, v7
|
|
|
|
if-ltz v1, :cond_2
|
|
|
|
iget-wide v1, v0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mTotalLength:D
|
|
|
|
return-wide v1
|
|
|
|
:cond_2
|
|
move-wide v7, v2
|
|
|
|
move-wide v9, v7
|
|
|
|
move-wide v11, v9
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-ge v1, v4, :cond_6
|
|
|
|
iget-object v13, v0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mY:[[D
|
|
|
|
aget-object v14, v13, v1
|
|
|
|
aget-wide v15, v14, v5
|
|
|
|
aget-object v13, v13, v1
|
|
|
|
aget-wide v17, v13, v6
|
|
|
|
if-lez v1, :cond_3
|
|
|
|
sub-double v9, v15, v9
|
|
|
|
sub-double v11, v17, v11
|
|
|
|
invoke-static {v9, v10, v11, v12}, Ljava/lang/Math;->hypot(DD)D
|
|
|
|
move-result-wide v9
|
|
|
|
add-double/2addr v7, v9
|
|
|
|
:cond_3
|
|
iget-object v9, v0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mT:[D
|
|
|
|
aget-wide v10, v9, v1
|
|
|
|
cmpl-double v12, p1, v10
|
|
|
|
if-nez v12, :cond_4
|
|
|
|
return-wide v7
|
|
|
|
:cond_4
|
|
add-int/lit8 v10, v1, 0x1
|
|
|
|
aget-wide v11, v9, v10
|
|
|
|
cmpg-double v13, p1, v11
|
|
|
|
if-gez v13, :cond_5
|
|
|
|
aget-wide v2, v9, v10
|
|
|
|
aget-wide v11, v9, v1
|
|
|
|
sub-double/2addr v2, v11
|
|
|
|
aget-wide v11, v9, v1
|
|
|
|
sub-double v11, p1, v11
|
|
|
|
div-double/2addr v11, v2
|
|
|
|
iget-object v2, v0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mY:[[D
|
|
|
|
aget-object v3, v2, v1
|
|
|
|
aget-wide v13, v3, v5
|
|
|
|
aget-object v3, v2, v10
|
|
|
|
aget-wide v4, v3, v5
|
|
|
|
aget-object v1, v2, v1
|
|
|
|
aget-wide v19, v1, v6
|
|
|
|
aget-object v1, v2, v10
|
|
|
|
aget-wide v2, v1, v6
|
|
|
|
const-wide/high16 v9, 0x3ff0000000000000L # 1.0
|
|
|
|
sub-double/2addr v9, v11
|
|
|
|
mul-double v19, v19, v9
|
|
|
|
mul-double v2, v2, v11
|
|
|
|
add-double v2, v2, v19
|
|
|
|
sub-double v1, v17, v2
|
|
|
|
mul-double v13, v13, v9
|
|
|
|
mul-double v4, v4, v11
|
|
|
|
add-double/2addr v4, v13
|
|
|
|
sub-double v3, v15, v4
|
|
|
|
invoke-static {v1, v2, v3, v4}, Ljava/lang/Math;->hypot(DD)D
|
|
|
|
move-result-wide v1
|
|
|
|
add-double/2addr v1, v7
|
|
|
|
return-wide v1
|
|
|
|
:cond_5
|
|
move v1, v10
|
|
|
|
move-wide v9, v15
|
|
|
|
move-wide/from16 v11, v17
|
|
|
|
goto :goto_0
|
|
|
|
:cond_6
|
|
return-wide v2
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getPos(DI)D
|
|
.locals 8
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mT:[D
|
|
|
|
array-length v1, v0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aget-wide v3, v0, v2
|
|
|
|
cmpg-double v5, p1, v3
|
|
|
|
if-gtz v5, :cond_0
|
|
|
|
iget-object p1, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mY:[[D
|
|
|
|
aget-object p1, p1, v2
|
|
|
|
aget-wide p2, p1, p3
|
|
|
|
return-wide p2
|
|
|
|
:cond_0
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
aget-wide v3, v0, v1
|
|
|
|
cmpl-double v0, p1, v3
|
|
|
|
if-ltz v0, :cond_1
|
|
|
|
iget-object p1, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mY:[[D
|
|
|
|
aget-object p1, p1, v1
|
|
|
|
aget-wide p2, p1, p3
|
|
|
|
return-wide p2
|
|
|
|
:cond_1
|
|
:goto_0
|
|
if-ge v2, v1, :cond_4
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mT:[D
|
|
|
|
aget-wide v3, v0, v2
|
|
|
|
cmpl-double v5, p1, v3
|
|
|
|
if-nez v5, :cond_2
|
|
|
|
iget-object p1, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mY:[[D
|
|
|
|
aget-object p1, p1, v2
|
|
|
|
aget-wide p2, p1, p3
|
|
|
|
return-wide p2
|
|
|
|
:cond_2
|
|
add-int/lit8 v3, v2, 0x1
|
|
|
|
aget-wide v4, v0, v3
|
|
|
|
cmpg-double v6, p1, v4
|
|
|
|
if-gez v6, :cond_3
|
|
|
|
aget-wide v4, v0, v3
|
|
|
|
aget-wide v6, v0, v2
|
|
|
|
sub-double/2addr v4, v6
|
|
|
|
aget-wide v6, v0, v2
|
|
|
|
sub-double/2addr p1, v6
|
|
|
|
div-double/2addr p1, v4
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mY:[[D
|
|
|
|
aget-object v1, v0, v2
|
|
|
|
aget-wide v4, v1, p3
|
|
|
|
aget-object v0, v0, v3
|
|
|
|
aget-wide v1, v0, p3
|
|
|
|
const-wide/high16 v6, 0x3ff0000000000000L # 1.0
|
|
|
|
sub-double/2addr v6, p1
|
|
|
|
mul-double v6, v6, v4
|
|
|
|
mul-double v1, v1, p1
|
|
|
|
add-double/2addr v1, v6
|
|
|
|
return-wide v1
|
|
|
|
:cond_3
|
|
move v2, v3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
const-wide/16 p1, 0x0
|
|
|
|
return-wide p1
|
|
.end method
|
|
|
|
.method public getPos(D[D)V
|
|
.locals 12
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mT:[D
|
|
|
|
array-length v1, v0
|
|
|
|
iget-object v2, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mY:[[D
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aget-object v2, v2, v3
|
|
|
|
array-length v2, v2
|
|
|
|
aget-wide v4, v0, v3
|
|
|
|
cmpg-double v6, p1, v4
|
|
|
|
if-gtz v6, :cond_1
|
|
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
if-ge p1, v2, :cond_0
|
|
|
|
iget-object p2, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mY:[[D
|
|
|
|
aget-object p2, p2, v3
|
|
|
|
aget-wide v0, p2, p1
|
|
|
|
aput-wide v0, p3, p1
|
|
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
|
|
:cond_1
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
aget-wide v4, v0, v1
|
|
|
|
cmpl-double v0, p1, v4
|
|
|
|
if-ltz v0, :cond_3
|
|
|
|
:goto_1
|
|
if-ge v3, v2, :cond_2
|
|
|
|
iget-object p1, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mY:[[D
|
|
|
|
aget-object p1, p1, v1
|
|
|
|
aget-wide v4, p1, v3
|
|
|
|
aput-wide v4, p3, v3
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
return-void
|
|
|
|
:cond_3
|
|
const/4 v0, 0x0
|
|
|
|
:goto_2
|
|
if-ge v0, v1, :cond_7
|
|
|
|
iget-object v4, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mT:[D
|
|
|
|
aget-wide v5, v4, v0
|
|
|
|
cmpl-double v4, p1, v5
|
|
|
|
if-nez v4, :cond_4
|
|
|
|
const/4 v4, 0x0
|
|
|
|
:goto_3
|
|
if-ge v4, v2, :cond_4
|
|
|
|
iget-object v5, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mY:[[D
|
|
|
|
aget-object v5, v5, v0
|
|
|
|
aget-wide v6, v5, v4
|
|
|
|
aput-wide v6, p3, v4
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
iget-object v4, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mT:[D
|
|
|
|
add-int/lit8 v5, v0, 0x1
|
|
|
|
aget-wide v6, v4, v5
|
|
|
|
cmpg-double v8, p1, v6
|
|
|
|
if-gez v8, :cond_6
|
|
|
|
aget-wide v6, v4, v5
|
|
|
|
aget-wide v8, v4, v0
|
|
|
|
sub-double/2addr v6, v8
|
|
|
|
aget-wide v8, v4, v0
|
|
|
|
sub-double/2addr p1, v8
|
|
|
|
div-double/2addr p1, v6
|
|
|
|
:goto_4
|
|
if-ge v3, v2, :cond_5
|
|
|
|
iget-object v1, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mY:[[D
|
|
|
|
aget-object v4, v1, v0
|
|
|
|
aget-wide v6, v4, v3
|
|
|
|
aget-object v1, v1, v5
|
|
|
|
aget-wide v8, v1, v3
|
|
|
|
const-wide/high16 v10, 0x3ff0000000000000L # 1.0
|
|
|
|
sub-double/2addr v10, p1
|
|
|
|
mul-double v10, v10, v6
|
|
|
|
mul-double v8, v8, p1
|
|
|
|
add-double/2addr v8, v10
|
|
|
|
aput-wide v8, p3, v3
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_5
|
|
return-void
|
|
|
|
:cond_6
|
|
move v0, v5
|
|
|
|
goto :goto_2
|
|
|
|
:cond_7
|
|
return-void
|
|
.end method
|
|
|
|
.method public getPos(D[F)V
|
|
.locals 12
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mT:[D
|
|
|
|
array-length v1, v0
|
|
|
|
iget-object v2, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mY:[[D
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aget-object v2, v2, v3
|
|
|
|
array-length v2, v2
|
|
|
|
aget-wide v4, v0, v3
|
|
|
|
cmpg-double v6, p1, v4
|
|
|
|
if-gtz v6, :cond_1
|
|
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
if-ge p1, v2, :cond_0
|
|
|
|
iget-object p2, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mY:[[D
|
|
|
|
aget-object p2, p2, v3
|
|
|
|
aget-wide v0, p2, p1
|
|
|
|
double-to-float p2, v0
|
|
|
|
aput p2, p3, p1
|
|
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
|
|
:cond_1
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
aget-wide v4, v0, v1
|
|
|
|
cmpl-double v0, p1, v4
|
|
|
|
if-ltz v0, :cond_3
|
|
|
|
:goto_1
|
|
if-ge v3, v2, :cond_2
|
|
|
|
iget-object p1, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mY:[[D
|
|
|
|
aget-object p1, p1, v1
|
|
|
|
aget-wide v4, p1, v3
|
|
|
|
double-to-float p1, v4
|
|
|
|
aput p1, p3, v3
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
return-void
|
|
|
|
:cond_3
|
|
const/4 v0, 0x0
|
|
|
|
:goto_2
|
|
if-ge v0, v1, :cond_7
|
|
|
|
iget-object v4, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mT:[D
|
|
|
|
aget-wide v5, v4, v0
|
|
|
|
cmpl-double v4, p1, v5
|
|
|
|
if-nez v4, :cond_4
|
|
|
|
const/4 v4, 0x0
|
|
|
|
:goto_3
|
|
if-ge v4, v2, :cond_4
|
|
|
|
iget-object v5, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mY:[[D
|
|
|
|
aget-object v5, v5, v0
|
|
|
|
aget-wide v6, v5, v4
|
|
|
|
double-to-float v5, v6
|
|
|
|
aput v5, p3, v4
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
iget-object v4, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mT:[D
|
|
|
|
add-int/lit8 v5, v0, 0x1
|
|
|
|
aget-wide v6, v4, v5
|
|
|
|
cmpg-double v8, p1, v6
|
|
|
|
if-gez v8, :cond_6
|
|
|
|
aget-wide v6, v4, v5
|
|
|
|
aget-wide v8, v4, v0
|
|
|
|
sub-double/2addr v6, v8
|
|
|
|
aget-wide v8, v4, v0
|
|
|
|
sub-double/2addr p1, v8
|
|
|
|
div-double/2addr p1, v6
|
|
|
|
:goto_4
|
|
if-ge v3, v2, :cond_5
|
|
|
|
iget-object v1, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mY:[[D
|
|
|
|
aget-object v4, v1, v0
|
|
|
|
aget-wide v6, v4, v3
|
|
|
|
aget-object v1, v1, v5
|
|
|
|
aget-wide v8, v1, v3
|
|
|
|
const-wide/high16 v10, 0x3ff0000000000000L # 1.0
|
|
|
|
sub-double/2addr v10, p1
|
|
|
|
mul-double v10, v10, v6
|
|
|
|
mul-double v8, v8, p1
|
|
|
|
add-double/2addr v8, v10
|
|
|
|
double-to-float v1, v8
|
|
|
|
aput v1, p3, v3
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_5
|
|
return-void
|
|
|
|
:cond_6
|
|
move v0, v5
|
|
|
|
goto :goto_2
|
|
|
|
:cond_7
|
|
return-void
|
|
.end method
|
|
|
|
.method public getSlope(DI)D
|
|
.locals 7
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mT:[D
|
|
|
|
array-length v1, v0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aget-wide v3, v0, v2
|
|
|
|
cmpg-double v5, p1, v3
|
|
|
|
if-gez v5, :cond_0
|
|
|
|
aget-wide p1, v0, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
add-int/lit8 v3, v1, -0x1
|
|
|
|
aget-wide v4, v0, v3
|
|
|
|
cmpl-double v6, p1, v4
|
|
|
|
if-ltz v6, :cond_1
|
|
|
|
aget-wide p1, v0, v3
|
|
|
|
:cond_1
|
|
:goto_0
|
|
add-int/lit8 v0, v1, -0x1
|
|
|
|
if-ge v2, v0, :cond_3
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mT:[D
|
|
|
|
add-int/lit8 v3, v2, 0x1
|
|
|
|
aget-wide v4, v0, v3
|
|
|
|
cmpg-double v6, p1, v4
|
|
|
|
if-gtz v6, :cond_2
|
|
|
|
aget-wide p1, v0, v3
|
|
|
|
aget-wide v4, v0, v2
|
|
|
|
sub-double/2addr p1, v4
|
|
|
|
aget-wide v4, v0, v2
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mY:[[D
|
|
|
|
aget-object v1, v0, v2
|
|
|
|
aget-wide v4, v1, p3
|
|
|
|
aget-object v0, v0, v3
|
|
|
|
aget-wide v1, v0, p3
|
|
|
|
sub-double/2addr v1, v4
|
|
|
|
div-double/2addr v1, p1
|
|
|
|
return-wide v1
|
|
|
|
:cond_2
|
|
move v2, v3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
const-wide/16 p1, 0x0
|
|
|
|
return-wide p1
|
|
.end method
|
|
|
|
.method public getSlope(D[D)V
|
|
.locals 10
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mT:[D
|
|
|
|
array-length v1, v0
|
|
|
|
iget-object v2, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mY:[[D
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aget-object v2, v2, v3
|
|
|
|
array-length v2, v2
|
|
|
|
aget-wide v4, v0, v3
|
|
|
|
cmpg-double v6, p1, v4
|
|
|
|
if-gtz v6, :cond_0
|
|
|
|
aget-wide p1, v0, v3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
add-int/lit8 v4, v1, -0x1
|
|
|
|
aget-wide v5, v0, v4
|
|
|
|
cmpl-double v7, p1, v5
|
|
|
|
if-ltz v7, :cond_1
|
|
|
|
aget-wide p1, v0, v4
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_1
|
|
add-int/lit8 v4, v1, -0x1
|
|
|
|
if-ge v0, v4, :cond_3
|
|
|
|
iget-object v4, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mT:[D
|
|
|
|
add-int/lit8 v5, v0, 0x1
|
|
|
|
aget-wide v6, v4, v5
|
|
|
|
cmpg-double v8, p1, v6
|
|
|
|
if-gtz v8, :cond_2
|
|
|
|
aget-wide p1, v4, v5
|
|
|
|
aget-wide v6, v4, v0
|
|
|
|
sub-double/2addr p1, v6
|
|
|
|
aget-wide v6, v4, v0
|
|
|
|
:goto_2
|
|
if-ge v3, v2, :cond_3
|
|
|
|
iget-object v1, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mY:[[D
|
|
|
|
aget-object v4, v1, v0
|
|
|
|
aget-wide v6, v4, v3
|
|
|
|
aget-object v1, v1, v5
|
|
|
|
aget-wide v8, v1, v3
|
|
|
|
sub-double/2addr v8, v6
|
|
|
|
div-double/2addr v8, p1
|
|
|
|
aput-wide v8, p3, v3
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
move v0, v5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
.method public getTimePoints()[D
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/utils/LinearCurveFit;->mT:[D
|
|
|
|
return-object v0
|
|
.end method
|