lib/shapes/Ellipse.py
def fitToHeight(self, height=0.0):
		"""Fits shape to given height maintaining scale.

		@param height: The height to fit to
		"""

		if height <= 0:
			raise ValueError("height must be greater than 0")

		# Maintain scale. Divide by 2 since it's a radius
		scalingFactor = 1.0 - ((self.ry - float(height)) / self.ry)
		self.rx = (self.rx * scalingFactor) / 2.0
		self.ry = height / 2.0
Fits shape to given height maintaining scale.

		@param height: The height to fit to
		
Fits shape to given height maintaining scale.
Fits shape to given height maintaining scale .
def fitToHeight(self, height=0.0):
		if height <= 0:
			raise ValueError("height must be greater than 0")
		scalingFactor = 1.0 - ((self.ry - float(height)) / self.ry)
		self.rx = (self.rx * scalingFactor) / 2.0
		self.ry = height / 2.0
def fitToHeight ( self , height = 0.0 ) : if height <= 0 : raise ValueError ( "height must be greater than 0" ) scalingFactor = 1.0 - ( ( self . ry - float ( height ) ) / self . ry ) self . rx = ( self . rx * scalingFactor ) / 2.0 self . ry = height / 2.0
Fits shape to given height maintaining scale.
Fits shape to given height maintaining scale .
"""Fits shape to given height maintaining scale.

		@param height: The height to fit to
		""" # Maintain scale. Divide by 2 since it's a radius
self
height
The height to fit to
The height to fit to