lib/shapes/Path.py
def fitToHeight(self, height=0.0):
		"""Scales the path to fit in the given height.

		@param height: The height to scale to
		"""

		x, y = self.position
		ratio = height / self.height
		newcoords = []
		for coord in self.coordinates:
			newx = x + (coord.x - x) * ratio
			newy = y + (coord.y - y) * ratio
			newcoords.append(Coordinate(newx, newy))
		self.coordinates = tuple(newcoords)
Scales the path to fit in the given height.

		@param height: The height to scale to
		
Scales the path to fit in the given height.
Scales the path to fit in the given height .
def fitToHeight(self, height=0.0):
		x, y = self.position
		ratio = height / self.height
		newcoords = []
		for coord in self.coordinates:
			newx = x + (coord.x - x) * ratio
			newy = y + (coord.y - y) * ratio
			newcoords.append(Coordinate(newx, newy))
		self.coordinates = tuple(newcoords)
def fitToHeight ( self , height = 0.0 ) : x , y = self . position ratio = height / self . height newcoords = [ ] for coord in self . coordinates : newx = x + ( coord . x - x ) * ratio newy = y + ( coord . y - y ) * ratio newcoords . append ( Coordinate ( newx , newy ) ) self . coordinates = tuple ( newcoords )
Scales the path to fit in the given height.
Scales the path to fit in the given height .
"""Scales the path to fit in the given height.

		@param height: The height to scale to
		"""
self
height
The height to scale to
The height to scale to