Artenus 2D Framework
Artenus Reference
Represents a circular Shape that can be used for physical simulation.
public final class CircleShape
implements Shape

Field Summary

Modifier and TypeField and Description
public static final TYPE
Type value representing a circular shape.

Constructor Summary

Modifier and TypeConstructor and Description
public CircleShape(float radius)
Creates a CircleShape using the given radius.

Method Summary

Modifier and TypeMethod and Description
public ObjectcreateInternal()
Creates an internal representation of this Shape.
public floatgetRadius()
Gets the radius associated to this CircleShape.
public intgetType()
Gets the type of this Shape.

Methods inherited from java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

TYPE
public static final TYPE
Type value representing a circular shape.

Constructor Detail

CircleShape
public  CircleShape(
    float radius
)
Creates a CircleShape using the given radius.
Parameters:
radiusThe radius of the circle

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