.class public Lcom/badlogic/gdx/math/Circle;
.super Ljava/lang/Object;
.source "Circle.java"

# interfaces
.implements Lcom/badlogic/gdx/math/Shape2D;
.implements Ljava/io/Serializable;


# instance fields
.field public radius:F

.field public x:F

.field public y:F


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 27
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public constructor <init>(FFF)V
    .locals 0

    .line 36
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 37
    iput p1, p0, Lcom/badlogic/gdx/math/Circle;->x:F

    .line 38
    iput p2, p0, Lcom/badlogic/gdx/math/Circle;->y:F

    .line 39
    iput p3, p0, Lcom/badlogic/gdx/math/Circle;->radius:F

    return-void
.end method

.method public constructor <init>(Lcom/badlogic/gdx/math/Circle;)V
    .locals 1

    .line 55
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 56
    iget v0, p1, Lcom/badlogic/gdx/math/Circle;->x:F

    iput v0, p0, Lcom/badlogic/gdx/math/Circle;->x:F

    .line 57
    iget v0, p1, Lcom/badlogic/gdx/math/Circle;->y:F

    iput v0, p0, Lcom/badlogic/gdx/math/Circle;->y:F

    .line 58
    iget p1, p1, Lcom/badlogic/gdx/math/Circle;->radius:F

    iput p1, p0, Lcom/badlogic/gdx/math/Circle;->radius:F

    return-void
.end method

.method public constructor <init>(Lcom/badlogic/gdx/math/Vector2;F)V
    .locals 1

    .line 46
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 47
    iget v0, p1, Lcom/badlogic/gdx/math/Vector2;->x:F

    iput v0, p0, Lcom/badlogic/gdx/math/Circle;->x:F

    .line 48
    iget p1, p1, Lcom/badlogic/gdx/math/Vector2;->y:F

    iput p1, p0, Lcom/badlogic/gdx/math/Circle;->y:F

    .line 49
    iput p2, p0, Lcom/badlogic/gdx/math/Circle;->radius:F

    return-void
.end method

.method public constructor <init>(Lcom/badlogic/gdx/math/Vector2;Lcom/badlogic/gdx/math/Vector2;)V
    .locals 2

    .line 65
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 66
    iget v0, p1, Lcom/badlogic/gdx/math/Vector2;->x:F

    iput v0, p0, Lcom/badlogic/gdx/math/Circle;->x:F

    .line 67
    iget v0, p1, Lcom/badlogic/gdx/math/Vector2;->y:F

    iput v0, p0, Lcom/badlogic/gdx/math/Circle;->y:F

    .line 68
    iget v0, p1, Lcom/badlogic/gdx/math/Vector2;->x:F

    iget v1, p2, Lcom/badlogic/gdx/math/Vector2;->x:F

    sub-float/2addr v0, v1

    iget p1, p1, Lcom/badlogic/gdx/math/Vector2;->y:F

    iget p2, p2, Lcom/badlogic/gdx/math/Vector2;->y:F

    sub-float/2addr p1, p2

    invoke-static {v0, p1}, Lcom/badlogic/gdx/math/Vector2;->len(FF)F

    move-result p1

    iput p1, p0, Lcom/badlogic/gdx/math/Circle;->radius:F

    return-void
.end method


# virtual methods
.method public area()F
    .locals 2

    .line 202
    iget v0, p0, Lcom/badlogic/gdx/math/Circle;->radius:F

    iget v1, p0, Lcom/badlogic/gdx/math/Circle;->radius:F

    mul-float v0, v0, v1

    const v1, 0x40490fdb    # (float)Math.PI

    mul-float v0, v0, v1

    return v0
.end method

.method public circumference()F
    .locals 2

    .line 197
    iget v0, p0, Lcom/badlogic/gdx/math/Circle;->radius:F

    const v1, 0x40c90fdb

    mul-float v0, v0, v1

    return v0
.end method

.method public contains(FF)Z
    .locals 1

    .line 151
    iget v0, p0, Lcom/badlogic/gdx/math/Circle;->x:F

    sub-float/2addr v0, p1

    .line 152
    iget p1, p0, Lcom/badlogic/gdx/math/Circle;->y:F

    sub-float/2addr p1, p2

    mul-float v0, v0, v0

    mul-float p1, p1, p1

    add-float/2addr v0, p1

    .line 153
    iget p1, p0, Lcom/badlogic/gdx/math/Circle;->radius:F

    iget p2, p0, Lcom/badlogic/gdx/math/Circle;->radius:F

    mul-float p1, p1, p2

    cmpg-float p1, v0, p1

    if-gtz p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method public contains(Lcom/badlogic/gdx/math/Circle;)Z
    .locals 5

    .line 170
    iget v0, p0, Lcom/badlogic/gdx/math/Circle;->radius:F

    iget v1, p1, Lcom/badlogic/gdx/math/Circle;->radius:F

    sub-float/2addr v0, v1

    const/4 v1, 0x0

    const/4 v2, 0x0

    cmpg-float v2, v0, v2

    if-gez v2, :cond_0

    return v1

    .line 172
    :cond_0
    iget v2, p0, Lcom/badlogic/gdx/math/Circle;->x:F

    iget v3, p1, Lcom/badlogic/gdx/math/Circle;->x:F

    sub-float/2addr v2, v3

    .line 173
    iget v3, p0, Lcom/badlogic/gdx/math/Circle;->y:F

    iget v4, p1, Lcom/badlogic/gdx/math/Circle;->y:F

    sub-float/2addr v3, v4

    mul-float v2, v2, v2

    mul-float v3, v3, v3

    add-float/2addr v2, v3

    .line 175
    iget v3, p0, Lcom/badlogic/gdx/math/Circle;->radius:F

    iget p1, p1, Lcom/badlogic/gdx/math/Circle;->radius:F

    add-float/2addr v3, p1

    mul-float v0, v0, v0

    cmpg-float p1, v0, v2

    if-ltz p1, :cond_1

    mul-float v3, v3, v3

    cmpg-float p1, v2, v3

    if-gez p1, :cond_1

    const/4 v1, 0x1

    :cond_1
    return v1
.end method

.method public contains(Lcom/badlogic/gdx/math/Vector2;)Z
    .locals 2

    .line 162
    iget v0, p0, Lcom/badlogic/gdx/math/Circle;->x:F

    iget v1, p1, Lcom/badlogic/gdx/math/Vector2;->x:F

    sub-float/2addr v0, v1

    .line 163
    iget v1, p0, Lcom/badlogic/gdx/math/Circle;->y:F

    iget p1, p1, Lcom/badlogic/gdx/math/Vector2;->y:F

    sub-float/2addr v1, p1

    mul-float v0, v0, v0

    mul-float v1, v1, v1

    add-float/2addr v0, v1

    .line 164
    iget p1, p0, Lcom/badlogic/gdx/math/Circle;->radius:F

    iget v1, p0, Lcom/badlogic/gdx/math/Circle;->radius:F

    mul-float p1, p1, v1

    cmpg-float p1, v0, p1

    if-gtz p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method public equals(Ljava/lang/Object;)Z
    .locals 4

    const/4 v0, 0x1

    if-ne p1, p0, :cond_0

    return v0

    :cond_0
    const/4 v1, 0x0

    if-eqz p1, :cond_3

    .line 208
    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v2

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v3

    if-eq v2, v3, :cond_1

    goto :goto_1

    .line 209
    :cond_1
    check-cast p1, Lcom/badlogic/gdx/math/Circle;

    .line 210
    iget v2, p0, Lcom/badlogic/gdx/math/Circle;->x:F

    iget v3, p1, Lcom/badlogic/gdx/math/Circle;->x:F

    cmpl-float v2, v2, v3

    if-nez v2, :cond_2

    iget v2, p0, Lcom/badlogic/gdx/math/Circle;->y:F

    iget v3, p1, Lcom/badlogic/gdx/math/Circle;->y:F

    cmpl-float v2, v2, v3

    if-nez v2, :cond_2

    iget v2, p0, Lcom/badlogic/gdx/math/Circle;->radius:F

    iget p1, p1, Lcom/badlogic/gdx/math/Circle;->radius:F

    cmpl-float p1, v2, p1

    if-nez p1, :cond_2

    goto :goto_0

    :cond_2
    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_3
    :goto_1
    return v1
.end method

.method public hashCode()I
    .locals 3

    .line 217
    iget v0, p0, Lcom/badlogic/gdx/math/Circle;->radius:F

    invoke-static {v0}, Lcom/badlogic/gdx/utils/NumberUtils;->b(F)I

    move-result v0

    const/16 v1, 0x29

    add-int/2addr v0, v1

    mul-int/lit8 v0, v0, 0x29

    .line 218
    iget v2, p0, Lcom/badlogic/gdx/math/Circle;->x:F

    invoke-static {v2}, Lcom/badlogic/gdx/utils/NumberUtils;->b(F)I

    move-result v2

    add-int/2addr v0, v2

    mul-int/lit8 v0, v0, 0x29

    .line 219
    iget v1, p0, Lcom/badlogic/gdx/math/Circle;->y:F

    invoke-static {v1}, Lcom/badlogic/gdx/utils/NumberUtils;->b(F)I

    move-result v1

    add-int/2addr v0, v1

    return v0
.end method

.method public overlaps(Lcom/badlogic/gdx/math/Circle;)Z
    .locals 3

    .line 182
    iget v0, p0, Lcom/badlogic/gdx/math/Circle;->x:F

    iget v1, p1, Lcom/badlogic/gdx/math/Circle;->x:F

    sub-float/2addr v0, v1

    .line 183
    iget v1, p0, Lcom/badlogic/gdx/math/Circle;->y:F

    iget v2, p1, Lcom/badlogic/gdx/math/Circle;->y:F

    sub-float/2addr v1, v2

    mul-float v0, v0, v0

    mul-float v1, v1, v1

    add-float/2addr v0, v1

    .line 185
    iget v1, p0, Lcom/badlogic/gdx/math/Circle;->radius:F

    iget p1, p1, Lcom/badlogic/gdx/math/Circle;->radius:F

    add-float/2addr v1, p1

    mul-float v1, v1, v1

    cmpg-float p1, v0, v1

    if-gez p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method public set(FFF)V
    .locals 0

    .line 77
    iput p1, p0, Lcom/badlogic/gdx/math/Circle;->x:F

    .line 78
    iput p2, p0, Lcom/badlogic/gdx/math/Circle;->y:F

    .line 79
    iput p3, p0, Lcom/badlogic/gdx/math/Circle;->radius:F

    return-void
.end method

.method public set(Lcom/badlogic/gdx/math/Circle;)V
    .locals 1

    .line 96
    iget v0, p1, Lcom/badlogic/gdx/math/Circle;->x:F

    iput v0, p0, Lcom/badlogic/gdx/math/Circle;->x:F

    .line 97
    iget v0, p1, Lcom/badlogic/gdx/math/Circle;->y:F

    iput v0, p0, Lcom/badlogic/gdx/math/Circle;->y:F

    .line 98
    iget p1, p1, Lcom/badlogic/gdx/math/Circle;->radius:F

    iput p1, p0, Lcom/badlogic/gdx/math/Circle;->radius:F

    return-void
.end method

.method public set(Lcom/badlogic/gdx/math/Vector2;F)V
    .locals 1

    .line 87
    iget v0, p1, Lcom/badlogic/gdx/math/Vector2;->x:F

    iput v0, p0, Lcom/badlogic/gdx/math/Circle;->x:F

    .line 88
    iget p1, p1, Lcom/badlogic/gdx/math/Vector2;->y:F

    iput p1, p0, Lcom/badlogic/gdx/math/Circle;->y:F

    .line 89
    iput p2, p0, Lcom/badlogic/gdx/math/Circle;->radius:F

    return-void
.end method

.method public set(Lcom/badlogic/gdx/math/Vector2;Lcom/badlogic/gdx/math/Vector2;)V
    .locals 2

    .line 106
    iget v0, p1, Lcom/badlogic/gdx/math/Vector2;->x:F

    iput v0, p0, Lcom/badlogic/gdx/math/Circle;->x:F

    .line 107
    iget v0, p1, Lcom/badlogic/gdx/math/Vector2;->y:F

    iput v0, p0, Lcom/badlogic/gdx/math/Circle;->y:F

    .line 108
    iget v0, p1, Lcom/badlogic/gdx/math/Vector2;->x:F

    iget v1, p2, Lcom/badlogic/gdx/math/Vector2;->x:F

    sub-float/2addr v0, v1

    iget p1, p1, Lcom/badlogic/gdx/math/Vector2;->y:F

    iget p2, p2, Lcom/badlogic/gdx/math/Vector2;->y:F

    sub-float/2addr p1, p2

    invoke-static {v0, p1}, Lcom/badlogic/gdx/math/Vector2;->len(FF)F

    move-result p1

    iput p1, p0, Lcom/badlogic/gdx/math/Circle;->radius:F

    return-void
.end method

.method public setPosition(FF)V
    .locals 0

    .line 122
    iput p1, p0, Lcom/badlogic/gdx/math/Circle;->x:F

    .line 123
    iput p2, p0, Lcom/badlogic/gdx/math/Circle;->y:F

    return-void
.end method

.method public setPosition(Lcom/badlogic/gdx/math/Vector2;)V
    .locals 1

    .line 114
    iget v0, p1, Lcom/badlogic/gdx/math/Vector2;->x:F

    iput v0, p0, Lcom/badlogic/gdx/math/Circle;->x:F

    .line 115
    iget p1, p1, Lcom/badlogic/gdx/math/Vector2;->y:F

    iput p1, p0, Lcom/badlogic/gdx/math/Circle;->y:F

    return-void
.end method

.method public setRadius(F)V
    .locals 0

    .line 141
    iput p1, p0, Lcom/badlogic/gdx/math/Circle;->radius:F

    return-void
.end method

.method public setX(F)V
    .locals 0

    .line 129
    iput p1, p0, Lcom/badlogic/gdx/math/Circle;->x:F

    return-void
.end method

.method public setY(F)V
    .locals 0

    .line 135
    iput p1, p0, Lcom/badlogic/gdx/math/Circle;->y:F

    return-void
.end method

.method public toString()Ljava/lang/String;
    .locals 2

    .line 192
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget v1, p0, Lcom/badlogic/gdx/math/Circle;->x:F

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    const-string v1, ","

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v1, p0, Lcom/badlogic/gdx/math/Circle;->y:F

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    const-string v1, ","

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v1, p0, Lcom/badlogic/gdx/math/Circle;->radius:F

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
