org.jbox2d.util.blob
Class DonutBlobContainer

java.lang.Object
  extended by org.jbox2d.util.blob.DonutBlobContainer
All Implemented Interfaces:
BlobContainer

public class DonutBlobContainer
extends java.lang.Object
implements BlobContainer

A donut blob container specified by two radii and a center.


Constructor Summary
DonutBlobContainer(Vec2 _center, float _radiusSmall, float _radiusLarge)
           
 
Method Summary
 boolean containsPoint(Vec2 p)
          Is the Vec2 within the desired geometry?
 AABB getAABB()
          Get the world AABB of the container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DonutBlobContainer

public DonutBlobContainer(Vec2 _center,
                          float _radiusSmall,
                          float _radiusLarge)
Method Detail

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