Shapepublic 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, setRadiuspublic Circle()
public Circle(double radius)
radius - the radius of the circlepublic double getVolume()
getVolume in interface ShapegetVolume in class Hypersphere