lib/shapes/Path.py
def translateTo(self, coord=Coordinate()):
		"""Translates the path to the given coordinate.

		@param coord: The new coordinate to translate to
		@type coord: Coordinate
		"""

		x = min([self.coordinates[i].x for i in xrange(len(self.coordinates))])
		y = min([self.coordinates[i].y for i in xrange(len(self.coordinates))])
		self.translate(x=coord.x - x, y=coord.y - y)
Translates the path to the given coordinate.

		@param coord: The new coordinate to translate to
		@type coord: Coordinate
		
Translates the path to the given coordinate.
Translates the path to the given coordinate .
def translateTo(self, coord=Coordinate()):
		x = min([self.coordinates[i].x for i in xrange(len(self.coordinates))])
		y = min([self.coordinates[i].y for i in xrange(len(self.coordinates))])
		self.translate(x=coord.x - x, y=coord.y - y)
def translateTo ( self , coord = Coordinate ( ) ) : x = min ( [ self . coordinates [ i ] . x for i in xrange ( len ( self . coordinates ) ) ] ) y = min ( [ self . coordinates [ i ] . y for i in xrange ( len ( self . coordinates ) ) ] ) self . translate ( x = coord . x - x , y = coord . y - y )
Translates the path to the given coordinate.
Translates the path to the given coordinate .
"""Translates the path to the given coordinate.

		@param coord: The new coordinate to translate to
		@type coord: Coordinate
		"""
self
coord
The new coordinate to translate to
The new coordinate to translate to