game.physics
Class CollisionCircle

java.lang.Object
  extended byjava.awt.geom.RectangularShape
      extended byjava.awt.geom.Ellipse2D
          extended bygame.physics.CollisionCircle
All Implemented Interfaces:
java.lang.Cloneable, java.awt.Shape

public class CollisionCircle
extends java.awt.geom.Ellipse2D


Nested Class Summary
 
Nested classes inherited from class java.awt.geom.Ellipse2D
java.awt.geom.Ellipse2D.Double, java.awt.geom.Ellipse2D.Float
 
Constructor Summary
CollisionCircle(double x, double y, double radius)
           
CollisionCircle(Vector2D point, double radius)
           
 
Method Summary
 java.awt.geom.Rectangle2D getBounds2D()
           
 double getCenterX()
           
 double getCenterY()
           
 double getHeight()
           
 double getRadius()
           
 double getWidth()
           
 double getX()
           
 double getY()
           
 boolean isColliding(CollisionCircle circle)
           
 boolean isColliding(double x, double y, double radius)
           
 boolean isEmpty()
           
 void setFrame(double x, double y, double w, double h)
           
 
Methods inherited from class java.awt.geom.Ellipse2D
contains, contains, getPathIterator, intersects
 
Methods inherited from class java.awt.geom.RectangularShape
clone, contains, contains, getBounds, getFrame, getMaxX, getMaxY, getMinX, getMinY, getPathIterator, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollisionCircle

public CollisionCircle(Vector2D point,
                       double radius)

CollisionCircle

public CollisionCircle(double x,
                       double y,
                       double radius)
Method Detail

getHeight

public double getHeight()
See Also:
RectangularShape.getHeight()

getWidth

public double getWidth()
See Also:
RectangularShape.getWidth()

getX

public double getX()
See Also:
RectangularShape.getX()

getY

public double getY()
See Also:
RectangularShape.getY()

getCenterX

public double getCenterX()
See Also:
RectangularShape.getCenterX()

getCenterY

public double getCenterY()
See Also:
RectangularShape.getCenterY()

getRadius

public double getRadius()

isEmpty

public boolean isEmpty()
See Also:
RectangularShape.isEmpty()

setFrame

public void setFrame(double x,
                     double y,
                     double w,
                     double h)
See Also:
RectangularShape.setFrame(double, double, double, double)

getBounds2D

public java.awt.geom.Rectangle2D getBounds2D()
See Also:
Shape.getBounds2D()

isColliding

public boolean isColliding(CollisionCircle circle)

isColliding

public boolean isColliding(double x,
                           double y,
                           double radius)