Package net.dermetfan.gdx.physics.box2d
Class Box2DUtils.PreconditionCheck.InvalidPolygonShapeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
net.dermetfan.gdx.physics.box2d.Box2DUtils.PreconditionCheck.InvalidPolyShapeException
net.dermetfan.gdx.physics.box2d.Box2DUtils.PreconditionCheck.InvalidPolygonShapeException
- All Implemented Interfaces:
Serializable
- Enclosing class:
Box2DUtils.PreconditionCheck
public static class Box2DUtils.PreconditionCheck.InvalidPolygonShapeException
extends Box2DUtils.PreconditionCheck.InvalidPolyShapeException
indicates that a PolygonShape cannot be created from this polygon
- Since:
- 0.11.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumthe reason this shape is invalid -
Field Summary
FieldsModifier and TypeFieldDescriptionwhy a PolygonShape cannot be createdFields inherited from class net.dermetfan.gdx.physics.box2d.Box2DUtils.PreconditionCheck.InvalidPolyShapeException
length, offset, vertices -
Constructor Summary
ConstructorsConstructorDescriptionInvalidPolygonShapeException(String message, Box2DUtils.PreconditionCheck.InvalidPolygonShapeException.Problem problem, float[] vertices, int offset, int length) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
problem
why a PolygonShape cannot be created
-
-
Constructor Details
-
InvalidPolygonShapeException
public InvalidPolygonShapeException(String message, Box2DUtils.PreconditionCheck.InvalidPolygonShapeException.Problem problem, float[] vertices, int offset, int length)
-
-
Method Details
-
getType
public com.badlogic.gdx.physics.box2d.Shape.Type getType()- Specified by:
getTypein classBox2DUtils.PreconditionCheck.InvalidPolyShapeException- Returns:
- the Type of the Shape
-