org.jbox2d.util.blob
Class DonutBlobContainer
java.lang.Object
org.jbox2d.util.blob.DonutBlobContainer
- All Implemented Interfaces:
- BlobContainer
public class DonutBlobContainer
- extends Object
- implements BlobContainer
A donut blob container specified by two radii and a center.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DonutBlobContainer
public DonutBlobContainer(Vec2 _center,
float _radiusSmall,
float _radiusLarge)
containsPoint
public boolean containsPoint(Vec2 p)
- Description copied from interface:
BlobContainer
- Is the Vec2 within the desired geometry?
- Specified by:
containsPoint
in interface BlobContainer
- Parameters:
p
- The point to test
- Returns:
- True if the geometry contains the point
getAABB
public AABB getAABB()
- Description copied from interface:
BlobContainer
- Get the world AABB of the container.
- Specified by:
getAABB
in interface BlobContainer