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:
java.io.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:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBox2DUtils.PreconditionCheck.InvalidPolygonShapeException.Problemthe reason this shape is invalid -
Field Summary
Fields Modifier and Type Field Description Box2DUtils.PreconditionCheck.InvalidPolygonShapeException.Problemproblemwhy a PolygonShape cannot be createdFields inherited from class net.dermetfan.gdx.physics.box2d.Box2DUtils.PreconditionCheck.InvalidPolyShapeException
length, offset, vertices -
Constructor Summary
Constructors Constructor Description InvalidPolygonShapeException(java.lang.String message, Box2DUtils.PreconditionCheck.InvalidPolygonShapeException.Problem problem, float[] vertices, int offset, int length) -
Method Summary
Modifier and Type Method Description com.badlogic.gdx.physics.box2d.Shape.TypegetType()Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
problem
why a PolygonShape cannot be created
-
-
Constructor Details
-
InvalidPolygonShapeException
public InvalidPolygonShapeException(java.lang.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
-