Ejemplo n.º 1
0
    def closest(self, position):
        """
		Obtain a Cursor at the point closest to 'position'
		
		Finds the point on this PLine that's closest to the point 'position' and returns a Cursor at that point
		"""
        return PCursor(Cursor.cursorFromClosestPoint(self.line, position))
Ejemplo n.º 2
0
	def closest(self, position):
		"""
		Obtain a Cursor at the point closest to 'position'
		
		Finds the point on this PLine that's closest to the point 'position' and returns a Cursor at that point
		"""
		return PCursor(Cursor.cursorFromClosestPoint(self.line, position))
Ejemplo n.º 3
0
def cursorAtPosition(self, position):
	"""Returns a 'cursor' object for this line thats closest to this position
        """

	return PCursor(Cursor.cursorFromClosestPoint(self, position))