Python 3/PyGame/carga_en_mov(E+B)/structures_3D.py
def scale(self, centre, scale):
        """ Scale the wireframe from the centre of the screen. """
        centre_x, centre_y = centre
        for node in self.nodes:
            node.x = centre_x + scale * (node.x - centre_x)
            node.y = centre_y + scale * (node.y - centre_y)
            node.z *= scale
 Scale the wireframe from the centre of the screen. 
Scale the wireframe from the centre of the screen.
Scale the wireframe from the centre of the screen .
def scale(self, centre, scale):
        centre_x, centre_y = centre
        for node in self.nodes:
            node.x = centre_x + scale * (node.x - centre_x)
            node.y = centre_y + scale * (node.y - centre_y)
            node.z *= scale
def scale ( self , centre , scale ) : centre_x , centre_y = centre for node in self . nodes : node . x = centre_x + scale * ( node . x - centre_x ) node . y = centre_y + scale * ( node . y - centre_y ) node . z *= scale
Scale the wireframe from the centre of the screen.
Scale the wireframe from the centre of the screen .
""" Scale the wireframe from the centre of the screen. """
self
centre
scale