pyllar :: Sphere :: Sphere :: Class Sphere
[hide private]
[frames] | no frames]

Class Sphere

source code


The Sphere class represents a sphere in 3D space.

Instance Methods [hide private]
 
__init__(self, x=0, y=0, z=0, r=1, thetaRes=32, phiRes=32)
Create an instance of the Sphere class.
source code

Inherited from Plottable.Plottable: AddToAxes, GetBounds, SetColor, SetDirection, SetOpacity, SetScale, UpdatePos

Method Details [hide private]

__init__(self, x=0, y=0, z=0, r=1, thetaRes=32, phiRes=32)
(Constructor)

source code 

Create an instance of the Sphere class.

x, y, and z are the coordinates of the center of the sphere. thetaRes is the number of polynomials in the theta dimansion. phiRes is the number of polynomials in the phi dimansion.
Overrides: Plottable.Plottable.__init__