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))
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))
def cursorAtPosition(self, position): """Returns a 'cursor' object for this line thats closest to this position """ return PCursor(Cursor.cursorFromClosestPoint(self, position))