|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.algart.drawing3d.Sphere3D
public class Sphere3D extends java.lang.Object implements Shape3D
3D sphere.
This class is immutable and thread-safe: there are no ways to modify settings of the created instance.
AlgART Laboratory 2010
Constructor and Description |
---|
Sphere3D(double centerX,
double centerY,
double centerZ,
double radius)
Creates new sphere with the given coordinates of the center and the radius. |
Modifier and Type | Method and Description |
---|---|
double |
getCenterX()
Returns x-coordinate of the center of the sphere. |
double |
getCenterY()
Returns y-coordinate of the center of the sphere. |
double |
getCenterZ()
Returns z-coordinate of the center of the sphere. |
double |
getRadius()
Returns the radius of the sphere. |
java.lang.String |
toString()
Returns a brief string description of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Sphere3D(double centerX, double centerY, double centerZ, double radius)
centerX
- x-coordinate of the center.centerY
- y-coordinate of the center.centerZ
- z-coordinate of the center.radius
- the radius of the sphere.java.lang.IllegalArgumentException
- if the passed radius is negative (< 0).Method Detail |
---|
public double getCenterX()
public double getCenterY()
public double getCenterZ()
public double getRadius()
public java.lang.String toString()
The result of this method may depend on implementation.
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |