# Class: sphere

a simple sphere

## Hierarchy

    o-+ simplecollision
      o-+ simpleshape
        o-+ sphere

## Interfaces:

- hashid

## Methods:

### Method overview:

- id
- new
- nexthit
- nextlist
- pos
- prevhit
- prevlist
- r
- remove
- space

new ([float x,y,z]/[float r],[float r],[int id])
  returns: (Sphere sphere)
  constructs a simple sphere
id (sphere self, [int id])
  returns: ([int id])
  id of sphere
nexthit (sphere self)
  returns: (shpere / aabox shape)
  next element in hitlist (ring)
nextlist (sphere self)
  returns: (shpere / aabox shape)
  next element in spacelist (ring)
pos (sphere self, [float x,y,z])
  returns: ([float x,y,z])
  center of sphere
prevhit (sphere self)
  returns: (shpere / aabox shape)
  prev element in hitlist (ring)
prevlist (sphere self)
  returns: (shpere / aabox shape)
  prev element in spacelist (ring)
r (sphere self, [float r])
  returns: ([float r])
  radius of sphere
remove (sphere self)
  returns: ()
  removes the sphere from his space
space (sphere self)
  returns: ([Space space])
  returns his space, if it is in a space

## Inherited Methods: