Shape
public class Circle extends Hypersphere
radius
Constructor | Description |
---|---|
Circle() |
Creates circle with unit radius
|
Circle(double radius) |
Creates circle of the given radius.
|
Modifier and Type | Method | Description |
---|---|---|
double |
getVolume() |
Returns the volume for the present sphere radius.
|
contains, D, getPosition, getRadius, setPosition, setRadius
public Circle()
public Circle(double radius)
radius
- the radius of the circlepublic double getVolume()
getVolume
in interface Shape
getVolume
in class Hypersphere