360 lines
5.7 KiB
Smali
360 lines
5.7 KiB
Smali
.class public Ls0/j;
|
|
.super Ljava/lang/Object;
|
|
.source "VelocityMatrix.java"
|
|
|
|
|
|
# static fields
|
|
.field public static g:Ljava/lang/String; = "VelocityMatrix"
|
|
|
|
|
|
# instance fields
|
|
.field public a:F
|
|
|
|
.field public b:F
|
|
|
|
.field public c:F
|
|
|
|
.field public d:F
|
|
|
|
.field public e:F
|
|
|
|
.field public f:F
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(FFII[F)V
|
|
.locals 16
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move/from16 v1, p3
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 1
|
|
aget v3, p5, v2
|
|
|
|
const/4 v4, 0x1
|
|
|
|
.line 2
|
|
aget v5, p5, v4
|
|
|
|
const/high16 v6, 0x3f000000 # 0.5f
|
|
|
|
sub-float v7, p1, v6
|
|
|
|
const/high16 v8, 0x40000000 # 2.0f
|
|
|
|
mul-float/2addr v7, v8
|
|
|
|
sub-float v6, p2, v6
|
|
|
|
mul-float/2addr v6, v8
|
|
|
|
.line 3
|
|
iget v8, v0, Ls0/j;->c:F
|
|
|
|
add-float/2addr v3, v8
|
|
|
|
.line 4
|
|
iget v8, v0, Ls0/j;->d:F
|
|
|
|
add-float/2addr v5, v8
|
|
|
|
.line 5
|
|
iget v8, v0, Ls0/j;->a:F
|
|
|
|
mul-float/2addr v8, v7
|
|
|
|
add-float/2addr v8, v3
|
|
|
|
.line 6
|
|
iget v3, v0, Ls0/j;->b:F
|
|
|
|
mul-float/2addr v3, v6
|
|
|
|
add-float/2addr v3, v5
|
|
|
|
.line 7
|
|
iget v5, v0, Ls0/j;->f:F
|
|
|
|
float-to-double v9, v5
|
|
|
|
invoke-static {v9, v10}, Ljava/lang/Math;->toRadians(D)D
|
|
|
|
move-result-wide v9
|
|
|
|
double-to-float v5, v9
|
|
|
|
.line 8
|
|
iget v9, v0, Ls0/j;->e:F
|
|
|
|
float-to-double v9, v9
|
|
|
|
invoke-static {v9, v10}, Ljava/lang/Math;->toRadians(D)D
|
|
|
|
move-result-wide v9
|
|
|
|
double-to-float v9, v9
|
|
|
|
neg-int v10, v1
|
|
|
|
int-to-float v10, v10
|
|
|
|
mul-float/2addr v10, v7
|
|
|
|
float-to-double v10, v10
|
|
|
|
float-to-double v12, v5
|
|
|
|
.line 9
|
|
invoke-static {v12, v13}, Ljava/lang/Math;->sin(D)D
|
|
|
|
move-result-wide v14
|
|
|
|
mul-double/2addr v14, v10
|
|
|
|
move/from16 v5, p4
|
|
|
|
int-to-float v5, v5
|
|
|
|
mul-float/2addr v5, v6
|
|
|
|
float-to-double v5, v5
|
|
|
|
invoke-static {v12, v13}, Ljava/lang/Math;->cos(D)D
|
|
|
|
move-result-wide v10
|
|
|
|
mul-double/2addr v10, v5
|
|
|
|
sub-double/2addr v14, v10
|
|
|
|
double-to-float v10, v14
|
|
|
|
mul-float/2addr v10, v9
|
|
|
|
add-float/2addr v10, v8
|
|
|
|
int-to-float v1, v1
|
|
|
|
mul-float/2addr v1, v7
|
|
|
|
float-to-double v7, v1
|
|
|
|
.line 10
|
|
invoke-static {v12, v13}, Ljava/lang/Math;->cos(D)D
|
|
|
|
move-result-wide v14
|
|
|
|
mul-double/2addr v14, v7
|
|
|
|
invoke-static {v12, v13}, Ljava/lang/Math;->sin(D)D
|
|
|
|
move-result-wide v7
|
|
|
|
mul-double/2addr v7, v5
|
|
|
|
sub-double/2addr v14, v7
|
|
|
|
double-to-float v1, v14
|
|
|
|
mul-float/2addr v9, v1
|
|
|
|
add-float/2addr v9, v3
|
|
|
|
.line 11
|
|
aput v10, p5, v2
|
|
|
|
.line 12
|
|
aput v9, p5, v4
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
iput v0, p0, Ls0/j;->e:F
|
|
|
|
iput v0, p0, Ls0/j;->d:F
|
|
|
|
iput v0, p0, Ls0/j;->c:F
|
|
|
|
iput v0, p0, Ls0/j;->b:F
|
|
|
|
iput v0, p0, Ls0/j;->a:F
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public c(Landroidx/constraintlayout/motion/widget/i;F)V
|
|
.locals 0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 1
|
|
invoke-virtual {p1, p2}, Landroidx/constraintlayout/motion/widget/i;->c(F)F
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Ls0/j;->e:F
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public d(Landroidx/constraintlayout/motion/widget/u;F)V
|
|
.locals 1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 1
|
|
invoke-virtual {p1, p2}, Landroidx/constraintlayout/motion/widget/u;->c(F)F
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Ls0/j;->e:F
|
|
|
|
.line 2
|
|
invoke-virtual {p1, p2}, Landroidx/constraintlayout/motion/widget/u;->a(F)F
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Ls0/j;->f:F
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public e(Landroidx/constraintlayout/motion/widget/i;Landroidx/constraintlayout/motion/widget/i;F)V
|
|
.locals 0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
if-nez p1, :cond_1
|
|
|
|
.line 1
|
|
invoke-virtual {p1, p3}, Landroidx/constraintlayout/motion/widget/i;->c(F)F
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Ls0/j;->a:F
|
|
|
|
:cond_1
|
|
if-nez p2, :cond_2
|
|
|
|
.line 2
|
|
invoke-virtual {p2, p3}, Landroidx/constraintlayout/motion/widget/i;->c(F)F
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Ls0/j;->b:F
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public f(Landroidx/constraintlayout/motion/widget/u;Landroidx/constraintlayout/motion/widget/u;F)V
|
|
.locals 0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 1
|
|
invoke-virtual {p1, p3}, Landroidx/constraintlayout/motion/widget/u;->c(F)F
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Ls0/j;->a:F
|
|
|
|
:cond_0
|
|
if-eqz p2, :cond_1
|
|
|
|
.line 2
|
|
invoke-virtual {p2, p3}, Landroidx/constraintlayout/motion/widget/u;->c(F)F
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Ls0/j;->b:F
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public g(Landroidx/constraintlayout/motion/widget/i;Landroidx/constraintlayout/motion/widget/i;F)V
|
|
.locals 0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 1
|
|
invoke-virtual {p1, p3}, Landroidx/constraintlayout/motion/widget/i;->c(F)F
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Ls0/j;->c:F
|
|
|
|
:cond_0
|
|
if-eqz p2, :cond_1
|
|
|
|
.line 2
|
|
invoke-virtual {p2, p3}, Landroidx/constraintlayout/motion/widget/i;->c(F)F
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Ls0/j;->d:F
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public h(Landroidx/constraintlayout/motion/widget/u;Landroidx/constraintlayout/motion/widget/u;F)V
|
|
.locals 0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 1
|
|
invoke-virtual {p1, p3}, Landroidx/constraintlayout/motion/widget/u;->c(F)F
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Ls0/j;->c:F
|
|
|
|
:cond_0
|
|
if-eqz p2, :cond_1
|
|
|
|
.line 2
|
|
invoke-virtual {p2, p3}, Landroidx/constraintlayout/motion/widget/u;->c(F)F
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Ls0/j;->d:F
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|