libgdx API

com.badlogic.gdx.physics.box2d
Class CircleShape

java.lang.Object
  extended by com.badlogic.gdx.physics.box2d.Shape
      extended by com.badlogic.gdx.physics.box2d.CircleShape

public class CircleShape
extends Shape

A circle shape.

Author:
mzechner

Nested Class Summary
 
Nested classes/interfaces inherited from class com.badlogic.gdx.physics.box2d.Shape
Shape.Type
 
Field Summary
 
Fields inherited from class com.badlogic.gdx.physics.box2d.Shape
addr
 
Constructor Summary
  CircleShape()
           
protected CircleShape(long addr)
           
 
Method Summary
 Vector2 getPosition()
           
 Shape.Type getType()
          Get the type of this shape.
 void setPosition(Vector2 position)
          Sets the position of the shape
 
Methods inherited from class com.badlogic.gdx.physics.box2d.Shape
dispose, getChildCount, getRadius, jniGetType, setRadius
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CircleShape

public CircleShape()

CircleShape

protected CircleShape(long addr)
Method Detail

getType

public Shape.Type getType()
Get the type of this shape. You can use this to down cast to the concrete shape.

Specified by:
getType in class Shape
Returns:
the shape type.

getPosition

public Vector2 getPosition()

setPosition

public void setPosition(Vector2 position)
Sets the position of the shape


libgdx API

Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)