com.annahid.libs.artenus.physics
RectangleShape
Represents a rectangular
Shape that can be used for
physical simulation. public final class RectangleShape implements Shape
Field Summary
| Modifier and Type | Field and Description |
|---|---|
public static final | TYPEType value representing a rectangular shape. |
Constructor Summary
| Modifier and Type | Constructor and Description |
|---|---|
public | RectangleShape(float width, float height) Creates a RectangleShape with given dimensions. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
public Object | createInternal() Creates an internal representation of this Shape. |
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, waitConstructor Detail
| RectangleShape | ||||
|---|---|---|---|---|
public RectangleShape(
float width,
float height
)Creates a RectangleShape with given dimensions.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 |
| getType |
|---|
public int getType() Gets the type of this Shape.Specified By:
Returns:
The type of the shape |