Example usage for com.badlogic.gdx.math Circle Circle

List of usage examples for com.badlogic.gdx.math Circle Circle

Introduction

In this page you can find the example usage for com.badlogic.gdx.math Circle Circle.

Prototype

public Circle(Circle circle) 

Source Link

Document

Copy constructor

Usage

From source file:com.andgate.pokeadot.Pokable.java

License:Open Source License

public Pokable(final PokeADot game, Circle circle, Color color, float timeLimit) {
    this.game = game;
    this.color = new Color(color);
    this.initialCircle = new Circle(circle);
    this.hittableCircle = new Circle(circle);
    this.visualCircle = new Circle(circle);

    this.timeLimit = timeLimit;
    timeElapsed = NO_TIME;/*from w  w w  .  j  ava2  s .  c o m*/

    activeSpeed = -(initialCircle.radius / timeLimit);
    implodeSpeed = -(initialCircle.radius / MAX_IMPLODE_TIME);
    explodeSpeed = initialCircle.radius * EXPLODE_FACTOR / MAX_EXPLODE_TIME;
}