com.annahid.libs.artenus.physics
CircleShape
Represents a circular
Shape
that can be used for
physical simulation. public final class CircleShape implements Shape
Field Summary
Modifier and Type | Field and Description |
---|---|
public static final | TYPE Type value representing a circular shape. |
Constructor Summary
Modifier and Type | Constructor and Description |
---|---|
public | CircleShape(float radius) Creates a CircleShape using the given radius. |
Method Summary
Modifier and Type | Method and Description |
---|---|
public Object | createInternal() Creates an internal representation of this Shape. |
public float | getRadius() Gets the radius associated to this CircleShape. |
public int | getType() Gets the type of this Shape . |
Methods inherited from java.lang.Object
clone
, equals
, finalize
, getClass
, hashCode
, notify
, notifyAll
, toString
, wait
, wait
, wait
Constructor Detail
CircleShape | ||
---|---|---|
public CircleShape( float radius )Creates a CircleShape using the given radius. Parameters:
|
Method Detail
createInternal |
---|
public Object createInternal() Creates an internal representation of this Shape. The exact type of the returned
object depends on the physics simulation engine used internally. Specified By:
Returns:
Box2D representation of this Shape |
getRadius |
---|
public float getRadius() Gets the radius associated to this CircleShape. Returns:
The radius of the circle |
getType |
---|
public int getType() Gets the type of this Shape .Specified By:
Returns:
The type of the shape |