810 lines
18 KiB
Smali
810 lines
18 KiB
Smali
.class public Landroidx/constraintlayout/motion/utils/ArcCurveFit;
|
|
.super Landroidx/constraintlayout/motion/utils/CurveFit;
|
|
.source "ArcCurveFit.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final ARC_START_FLIP:I = 0x3
|
|
|
|
.field public static final ARC_START_HORIZONTAL:I = 0x2
|
|
|
|
.field public static final ARC_START_LINEAR:I = 0x0
|
|
|
|
.field public static final ARC_START_VERTICAL:I = 0x1
|
|
|
|
.field public static final START_HORIZONTAL:I = 0x2
|
|
|
|
.field public static final START_LINEAR:I = 0x3
|
|
|
|
.field public static final START_VERTICAL:I = 0x1
|
|
|
|
|
|
# instance fields
|
|
.field public mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
.field public final mTime:[D
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>([I[D[[D)V
|
|
.locals 26
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p2
|
|
|
|
invoke-direct/range {p0 .. p0}, Landroidx/constraintlayout/motion/utils/CurveFit;-><init>()V
|
|
|
|
iput-object v1, v0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mTime:[D
|
|
|
|
array-length v2, v1
|
|
|
|
const/4 v3, 0x1
|
|
|
|
sub-int/2addr v2, v3
|
|
|
|
new-array v2, v2, [Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
iput-object v2, v0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x1
|
|
|
|
const/4 v6, 0x1
|
|
|
|
:goto_0
|
|
iget-object v7, v0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
array-length v7, v7
|
|
|
|
if-ge v4, v7, :cond_5
|
|
|
|
aget v7, p1, v4
|
|
|
|
const/4 v8, 0x3
|
|
|
|
const/4 v9, 0x2
|
|
|
|
if-eqz v7, :cond_4
|
|
|
|
if-eq v7, v3, :cond_3
|
|
|
|
if-eq v7, v9, :cond_2
|
|
|
|
if-eq v7, v8, :cond_0
|
|
|
|
move/from16 v20, v6
|
|
|
|
goto :goto_2
|
|
|
|
:cond_0
|
|
if-ne v5, v3, :cond_1
|
|
|
|
const/4 v5, 0x2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v5, 0x1
|
|
|
|
:goto_1
|
|
move/from16 v20, v5
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const/4 v5, 0x2
|
|
|
|
const/16 v20, 0x2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
const/4 v5, 0x1
|
|
|
|
const/16 v20, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
const/16 v20, 0x3
|
|
|
|
:goto_2
|
|
iget-object v14, v0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
new-instance v21, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
aget-wide v8, v1, v4
|
|
|
|
add-int/lit8 v22, v4, 0x1
|
|
|
|
aget-wide v10, v1, v22
|
|
|
|
aget-object v6, p3, v4
|
|
|
|
aget-wide v12, v6, v2
|
|
|
|
aget-object v6, p3, v4
|
|
|
|
aget-wide v15, v6, v3
|
|
|
|
aget-object v6, p3, v22
|
|
|
|
aget-wide v17, v6, v2
|
|
|
|
aget-object v6, p3, v22
|
|
|
|
aget-wide v23, v6, v3
|
|
|
|
move-object/from16 v6, v21
|
|
|
|
move/from16 v7, v20
|
|
|
|
move-object/from16 v25, v14
|
|
|
|
move-wide v14, v15
|
|
|
|
move-wide/from16 v16, v17
|
|
|
|
move-wide/from16 v18, v23
|
|
|
|
invoke-direct/range {v6 .. v19}, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;-><init>(IDDDDDD)V
|
|
|
|
aput-object v21, v25, v4
|
|
|
|
move/from16 v6, v20
|
|
|
|
move/from16 v4, v22
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getPos(DI)D
|
|
.locals 5
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
aget-object v2, v0, v1
|
|
|
|
iget-wide v2, v2, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->mTime1:D
|
|
|
|
cmpg-double v4, p1, v2
|
|
|
|
if-gez v4, :cond_0
|
|
|
|
aget-object p1, v0, v1
|
|
|
|
iget-wide p1, p1, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->mTime1:D
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
array-length v2, v0
|
|
|
|
add-int/lit8 v2, v2, -0x1
|
|
|
|
aget-object v2, v0, v2
|
|
|
|
iget-wide v2, v2, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->mTime2:D
|
|
|
|
cmpl-double v4, p1, v2
|
|
|
|
if-lez v4, :cond_1
|
|
|
|
array-length p1, v0
|
|
|
|
add-int/lit8 p1, p1, -0x1
|
|
|
|
aget-object p1, v0, p1
|
|
|
|
iget-wide p1, p1, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->mTime2:D
|
|
|
|
:cond_1
|
|
:goto_0
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
array-length v2, v0
|
|
|
|
if-ge v1, v2, :cond_6
|
|
|
|
aget-object v2, v0, v1
|
|
|
|
iget-wide v2, v2, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->mTime2:D
|
|
|
|
cmpg-double v4, p1, v2
|
|
|
|
if-gtz v4, :cond_5
|
|
|
|
aget-object v2, v0, v1
|
|
|
|
iget-boolean v2, v2, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->linear:Z
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
if-nez p3, :cond_2
|
|
|
|
aget-object p3, v0, v1
|
|
|
|
invoke-virtual {p3, p1, p2}, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->getLinearX(D)D
|
|
|
|
move-result-wide p1
|
|
|
|
return-wide p1
|
|
|
|
:cond_2
|
|
aget-object p3, v0, v1
|
|
|
|
invoke-virtual {p3, p1, p2}, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->getLinearY(D)D
|
|
|
|
move-result-wide p1
|
|
|
|
return-wide p1
|
|
|
|
:cond_3
|
|
aget-object v0, v0, v1
|
|
|
|
invoke-virtual {v0, p1, p2}, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->setPoint(D)V
|
|
|
|
if-nez p3, :cond_4
|
|
|
|
iget-object p1, p0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
aget-object p1, p1, v1
|
|
|
|
invoke-virtual {p1}, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->getX()D
|
|
|
|
move-result-wide p1
|
|
|
|
return-wide p1
|
|
|
|
:cond_4
|
|
iget-object p1, p0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
aget-object p1, p1, v1
|
|
|
|
invoke-virtual {p1}, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->getY()D
|
|
|
|
move-result-wide p1
|
|
|
|
return-wide p1
|
|
|
|
:cond_5
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_6
|
|
const-wide/high16 p1, 0x7ff8000000000000L # Double.NaN
|
|
|
|
return-wide p1
|
|
.end method
|
|
|
|
.method public getPos(D[D)V
|
|
.locals 7
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
aget-object v2, v0, v1
|
|
|
|
iget-wide v2, v2, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->mTime1:D
|
|
|
|
cmpg-double v4, p1, v2
|
|
|
|
if-gez v4, :cond_0
|
|
|
|
aget-object p1, v0, v1
|
|
|
|
iget-wide p1, p1, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->mTime1:D
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
array-length v2, v0
|
|
|
|
const/4 v3, 0x1
|
|
|
|
sub-int/2addr v2, v3
|
|
|
|
aget-object v2, v0, v2
|
|
|
|
iget-wide v4, v2, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->mTime2:D
|
|
|
|
cmpl-double v2, p1, v4
|
|
|
|
if-lez v2, :cond_1
|
|
|
|
array-length p1, v0
|
|
|
|
sub-int/2addr p1, v3
|
|
|
|
aget-object p1, v0, p1
|
|
|
|
iget-wide p1, p1, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->mTime2:D
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
iget-object v2, p0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
array-length v4, v2
|
|
|
|
if-ge v0, v4, :cond_4
|
|
|
|
aget-object v4, v2, v0
|
|
|
|
iget-wide v4, v4, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->mTime2:D
|
|
|
|
cmpg-double v6, p1, v4
|
|
|
|
if-gtz v6, :cond_3
|
|
|
|
aget-object v4, v2, v0
|
|
|
|
iget-boolean v4, v4, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->linear:Z
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
aget-object v2, v2, v0
|
|
|
|
invoke-virtual {v2, p1, p2}, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->getLinearX(D)D
|
|
|
|
move-result-wide v4
|
|
|
|
aput-wide v4, p3, v1
|
|
|
|
iget-object v1, p0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
aget-object v0, v1, v0
|
|
|
|
invoke-virtual {v0, p1, p2}, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->getLinearY(D)D
|
|
|
|
move-result-wide p1
|
|
|
|
aput-wide p1, p3, v3
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
aget-object v2, v2, v0
|
|
|
|
invoke-virtual {v2, p1, p2}, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->setPoint(D)V
|
|
|
|
iget-object p1, p0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
aget-object p1, p1, v0
|
|
|
|
invoke-virtual {p1}, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->getX()D
|
|
|
|
move-result-wide p1
|
|
|
|
aput-wide p1, p3, v1
|
|
|
|
iget-object p1, p0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
aget-object p1, p1, v0
|
|
|
|
invoke-virtual {p1}, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->getY()D
|
|
|
|
move-result-wide p1
|
|
|
|
aput-wide p1, p3, v3
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
return-void
|
|
.end method
|
|
|
|
.method public getPos(D[F)V
|
|
.locals 7
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
aget-object v2, v0, v1
|
|
|
|
iget-wide v2, v2, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->mTime1:D
|
|
|
|
const/4 v4, 0x1
|
|
|
|
cmpg-double v5, p1, v2
|
|
|
|
if-gez v5, :cond_0
|
|
|
|
aget-object p1, v0, v1
|
|
|
|
iget-wide p1, p1, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->mTime1:D
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
array-length v2, v0
|
|
|
|
sub-int/2addr v2, v4
|
|
|
|
aget-object v2, v0, v2
|
|
|
|
iget-wide v2, v2, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->mTime2:D
|
|
|
|
cmpl-double v5, p1, v2
|
|
|
|
if-lez v5, :cond_1
|
|
|
|
array-length p1, v0
|
|
|
|
sub-int/2addr p1, v4
|
|
|
|
aget-object p1, v0, p1
|
|
|
|
iget-wide p1, p1, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->mTime2:D
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_1
|
|
iget-object v2, p0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
array-length v3, v2
|
|
|
|
if-ge v0, v3, :cond_4
|
|
|
|
aget-object v3, v2, v0
|
|
|
|
iget-wide v5, v3, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->mTime2:D
|
|
|
|
cmpg-double v3, p1, v5
|
|
|
|
if-gtz v3, :cond_3
|
|
|
|
aget-object v3, v2, v0
|
|
|
|
iget-boolean v3, v3, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->linear:Z
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
aget-object v2, v2, v0
|
|
|
|
invoke-virtual {v2, p1, p2}, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->getLinearX(D)D
|
|
|
|
move-result-wide v2
|
|
|
|
double-to-float v2, v2
|
|
|
|
aput v2, p3, v1
|
|
|
|
iget-object v1, p0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
aget-object v0, v1, v0
|
|
|
|
invoke-virtual {v0, p1, p2}, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->getLinearY(D)D
|
|
|
|
move-result-wide p1
|
|
|
|
double-to-float p1, p1
|
|
|
|
aput p1, p3, v4
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
aget-object v2, v2, v0
|
|
|
|
invoke-virtual {v2, p1, p2}, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->setPoint(D)V
|
|
|
|
iget-object p1, p0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
aget-object p1, p1, v0
|
|
|
|
invoke-virtual {p1}, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->getX()D
|
|
|
|
move-result-wide p1
|
|
|
|
double-to-float p1, p1
|
|
|
|
aput p1, p3, v1
|
|
|
|
iget-object p1, p0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
aget-object p1, p1, v0
|
|
|
|
invoke-virtual {p1}, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->getY()D
|
|
|
|
move-result-wide p1
|
|
|
|
double-to-float p1, p1
|
|
|
|
aput p1, p3, v4
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
return-void
|
|
.end method
|
|
|
|
.method public getSlope(DI)D
|
|
.locals 5
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
aget-object v2, v0, v1
|
|
|
|
iget-wide v2, v2, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->mTime1:D
|
|
|
|
cmpg-double v4, p1, v2
|
|
|
|
if-gez v4, :cond_0
|
|
|
|
aget-object p1, v0, v1
|
|
|
|
iget-wide p1, p1, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->mTime1:D
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
array-length v2, v0
|
|
|
|
add-int/lit8 v2, v2, -0x1
|
|
|
|
aget-object v2, v0, v2
|
|
|
|
iget-wide v2, v2, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->mTime2:D
|
|
|
|
cmpl-double v4, p1, v2
|
|
|
|
if-lez v4, :cond_1
|
|
|
|
array-length p1, v0
|
|
|
|
add-int/lit8 p1, p1, -0x1
|
|
|
|
aget-object p1, v0, p1
|
|
|
|
iget-wide p1, p1, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->mTime2:D
|
|
|
|
:cond_1
|
|
:goto_0
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
array-length v2, v0
|
|
|
|
if-ge v1, v2, :cond_6
|
|
|
|
aget-object v2, v0, v1
|
|
|
|
iget-wide v2, v2, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->mTime2:D
|
|
|
|
cmpg-double v4, p1, v2
|
|
|
|
if-gtz v4, :cond_5
|
|
|
|
aget-object v2, v0, v1
|
|
|
|
iget-boolean v2, v2, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->linear:Z
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
if-nez p3, :cond_2
|
|
|
|
aget-object p3, v0, v1
|
|
|
|
invoke-virtual {p3, p1, p2}, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->getLinearDX(D)D
|
|
|
|
move-result-wide p1
|
|
|
|
return-wide p1
|
|
|
|
:cond_2
|
|
aget-object p3, v0, v1
|
|
|
|
invoke-virtual {p3, p1, p2}, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->getLinearDY(D)D
|
|
|
|
move-result-wide p1
|
|
|
|
return-wide p1
|
|
|
|
:cond_3
|
|
aget-object v0, v0, v1
|
|
|
|
invoke-virtual {v0, p1, p2}, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->setPoint(D)V
|
|
|
|
if-nez p3, :cond_4
|
|
|
|
iget-object p1, p0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
aget-object p1, p1, v1
|
|
|
|
invoke-virtual {p1}, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->getDX()D
|
|
|
|
move-result-wide p1
|
|
|
|
return-wide p1
|
|
|
|
:cond_4
|
|
iget-object p1, p0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
aget-object p1, p1, v1
|
|
|
|
invoke-virtual {p1}, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->getDY()D
|
|
|
|
move-result-wide p1
|
|
|
|
return-wide p1
|
|
|
|
:cond_5
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_6
|
|
const-wide/high16 p1, 0x7ff8000000000000L # Double.NaN
|
|
|
|
return-wide p1
|
|
.end method
|
|
|
|
.method public getSlope(D[D)V
|
|
.locals 7
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
aget-object v2, v0, v1
|
|
|
|
iget-wide v2, v2, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->mTime1:D
|
|
|
|
const/4 v4, 0x1
|
|
|
|
cmpg-double v5, p1, v2
|
|
|
|
if-gez v5, :cond_0
|
|
|
|
aget-object p1, v0, v1
|
|
|
|
iget-wide p1, p1, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->mTime1:D
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
array-length v2, v0
|
|
|
|
sub-int/2addr v2, v4
|
|
|
|
aget-object v2, v0, v2
|
|
|
|
iget-wide v2, v2, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->mTime2:D
|
|
|
|
cmpl-double v5, p1, v2
|
|
|
|
if-lez v5, :cond_1
|
|
|
|
array-length p1, v0
|
|
|
|
sub-int/2addr p1, v4
|
|
|
|
aget-object p1, v0, p1
|
|
|
|
iget-wide p1, p1, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->mTime2:D
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_1
|
|
iget-object v2, p0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
array-length v3, v2
|
|
|
|
if-ge v0, v3, :cond_4
|
|
|
|
aget-object v3, v2, v0
|
|
|
|
iget-wide v5, v3, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->mTime2:D
|
|
|
|
cmpg-double v3, p1, v5
|
|
|
|
if-gtz v3, :cond_3
|
|
|
|
aget-object v3, v2, v0
|
|
|
|
iget-boolean v3, v3, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->linear:Z
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
aget-object v2, v2, v0
|
|
|
|
invoke-virtual {v2, p1, p2}, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->getLinearDX(D)D
|
|
|
|
move-result-wide v2
|
|
|
|
aput-wide v2, p3, v1
|
|
|
|
iget-object v1, p0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
aget-object v0, v1, v0
|
|
|
|
invoke-virtual {v0, p1, p2}, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->getLinearDY(D)D
|
|
|
|
move-result-wide p1
|
|
|
|
aput-wide p1, p3, v4
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
aget-object v2, v2, v0
|
|
|
|
invoke-virtual {v2, p1, p2}, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->setPoint(D)V
|
|
|
|
iget-object p1, p0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
aget-object p1, p1, v0
|
|
|
|
invoke-virtual {p1}, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->getDX()D
|
|
|
|
move-result-wide p1
|
|
|
|
aput-wide p1, p3, v1
|
|
|
|
iget-object p1, p0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mArcs:[Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;
|
|
|
|
aget-object p1, p1, v0
|
|
|
|
invoke-virtual {p1}, Landroidx/constraintlayout/motion/utils/ArcCurveFit$Arc;->getDY()D
|
|
|
|
move-result-wide p1
|
|
|
|
aput-wide p1, p3, v4
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
return-void
|
|
.end method
|
|
|
|
.method public getTimePoints()[D
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/utils/ArcCurveFit;->mTime:[D
|
|
|
|
return-object v0
|
|
.end method
|