def __init__(self, center, absorptivity, radius): """ Arguments: location of center, rotation, absorptivity - passed along to the base class. """ UniformSurface.__init__(self, location, rotation, absorptivity) self.set_radius(radius) self.center = center
def __init__(self, location=None, rotation=None, absorptivity=0., width=1., height=1.): """Arguments: location, rotation, absorptivity - passed along to the base class. width - dimension along the surface's local x axis. height - dimension along the surface's local y axis. """ UniformSurface.__init__(self, location, rotation, absorptivity) self.set_width(width) self.set_height(height)