public static enum Box2DUtils.PreconditionCheck extends java.lang.Enum<Box2DUtils.PreconditionCheck>
| Modifier and Type | Class and Description |
|---|---|
static class |
Box2DUtils.PreconditionCheck.InvalidChainShapeException
indicates that a ChainShape cannot be created from this polyline
|
static class |
Box2DUtils.PreconditionCheck.InvalidPolygonShapeException
indicates that a PolygonShape cannot be created from this polygon
|
static class |
Box2DUtils.PreconditionCheck.InvalidPolyShapeException
indicates that a poly shape cannot be created from these vertices
|
| Enum Constant and Description |
|---|
EXCEPTION
throws an exception
|
NONE
doesn't check anything
|
SILENT
checks preconditions normally
|
| Modifier and Type | Method and Description |
|---|---|
static void |
checkChainShape(float[] vertices,
int offset,
int length) |
static void |
checkPolygonShape(float[] vertices,
int offset,
int length) |
boolean |
isValidChainShape(float[] vertices) |
abstract boolean |
isValidChainShape(float[] vertices,
int offset,
int length) |
boolean |
isValidChainShape(com.badlogic.gdx.utils.FloatArray vertices) |
boolean |
isValidPolygonShape(float[] vertices) |
abstract boolean |
isValidPolygonShape(float[] vertices,
int offset,
int length) |
boolean |
isValidPolygonShape(com.badlogic.gdx.utils.FloatArray vertices) |
static Box2DUtils.PreconditionCheck |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Box2DUtils.PreconditionCheck[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Box2DUtils.PreconditionCheck NONE
public static final Box2DUtils.PreconditionCheck SILENT
public static final Box2DUtils.PreconditionCheck EXCEPTION
public static Box2DUtils.PreconditionCheck[] values()
for (Box2DUtils.PreconditionCheck c : Box2DUtils.PreconditionCheck.values()) System.out.println(c);
public static Box2DUtils.PreconditionCheck valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static void checkChainShape(float[] vertices,
int offset,
int length)
public static void checkPolygonShape(float[] vertices,
int offset,
int length)
public boolean isValidChainShape(com.badlogic.gdx.utils.FloatArray vertices)
public boolean isValidChainShape(float[] vertices)
public abstract boolean isValidChainShape(float[] vertices,
int offset,
int length)
public boolean isValidPolygonShape(com.badlogic.gdx.utils.FloatArray vertices)
public boolean isValidPolygonShape(float[] vertices)
public abstract boolean isValidPolygonShape(float[] vertices,
int offset,
int length)