public class Sphere extends Object
LargestInscribedBall
Constructor and Description |
---|
Sphere(Point3D center,
double radius)
Creates a new sphere from a center and a radius.
|
Modifier and Type | Method and Description |
---|---|
Point3D |
center() |
double |
radius() |
double |
surfaceArea() |
double |
volume() |
public Sphere(Point3D center, double radius)
center
- the center of the sphereradius
- the radius of the spherepublic double volume()
public double surfaceArea()
public Point3D center()
public double radius()
Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.