source.ucregents.playground.physics
Class Circle2d

java.lang.Object
  extended by java.awt.geom.RectangularShape
      extended by java.awt.geom.Ellipse2D
          extended by java.awt.geom.Ellipse2D.Double
              extended by source.ucregents.playground.physics.Circle2d
All Implemented Interfaces:
java.awt.Shape, java.lang.Cloneable

public class Circle2d
extends java.awt.geom.Ellipse2D.Double

A Circle 2D is an Ellipse2D that accepts doubles and a radius as it's ctor parameters


Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.Ellipse2D
java.awt.geom.Ellipse2D.Double, java.awt.geom.Ellipse2D.Float
 
Field Summary
 
Fields inherited from class java.awt.geom.Ellipse2D.Double
height, width, x, y
 
Constructor Summary
Circle2d(double xUL, double yUL, double radius)
          Constructs a circle
 
Method Summary
 double getRadius()
          Gets the radius of the circle
 
Methods inherited from class java.awt.geom.Ellipse2D.Double
getBounds2D, getHeight, getWidth, getX, getY, isEmpty, setFrame
 
Methods inherited from class java.awt.geom.Ellipse2D
contains, contains, getPathIterator, intersects
 
Methods inherited from class java.awt.geom.RectangularShape
clone, contains, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, getPathIterator, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Circle2d

public Circle2d(double xUL,
                double yUL,
                double radius)
Constructs a circle

Parameters:
xUL - The upper left x coordinate
yUL - The upper left y coordinate
radius - The radius of the circle
Method Detail

getRadius

public double getRadius()
Gets the radius of the circle

Returns:
The radius of the circle