Package gameobjects :: Module sphere :: Class Sphere
[hide private]
[frames] | no frames]

Class Sphere

source code


Instance Methods [hide private]
 
__init__(self, position=(0, 0, 0), radius=1.0)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
get_position(self) source code
 
set_position(self, position) source code
 
get_radius(self) source code
 
set_radius(self, radius) source code
 
__str__(self)
str(x)
source code
 
__repr__(self)
repr(x)
source code
 
__contains__(self, shape) source code
 
contains(self, shape) source code
 
in_sphere(self, sphere) source code
 
intersects(self, shape) source code
 
intersects_sphere(self, sphere) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Properties [hide private]
  position
Position of sphere centre.
  radius
Radius of the sphere.

Inherited from object: __class__

Method Details [hide private]

__init__(self, position=(0, 0, 0), radius=1.0)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 
str(x)
Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 
repr(x)
Overrides: object.__repr__
(inherited documentation)

Property Details [hide private]

position

Position of sphere centre.
Get Method:
gameobjects.sphere.Sphere.get_position(self)
Set Method:
gameobjects.sphere.Sphere.set_position(self, position)

radius

Radius of the sphere.
Get Method:
gameobjects.sphere.Sphere.get_radius(self)
Set Method:
gameobjects.sphere.Sphere.set_radius(self, radius)